working on it ...

Filters

Explore InChannel Snippets

Sort by

Found 500 snippets

    public by ngelesetsek modified yesterday at 4:42:25 AM  38  0  3  0

    vingadores-guerra-infinita-parte

    vingadores-guerra-infinita-parte
    http://assistir-dublado-em.over-blog.com/vingadores-guerra-infinita-parte-1-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues
    http://assistir-dublado-em.over-blog.com/2018/04/um-lugar-silencioso-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/a-partir-de-uma-historia-verdadeira-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues
    http://assistir-dublado-em.over-blog.com/rampage-fora-de-controlo-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues
    http://assistir-dublado-em.over-blog.com/submergence-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues
    http://assistir-dublado-em.over-blog.com/2018/04/7-days-in-entebbe-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/2018/04/the-third-murder-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/2018/04/the-crucifixion-exorcsmos-e-demonios-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/2018/04/please-stand-by-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    

    public by ngelesetsek modified yesterday at 12:39:06 AM  36  0  2  0

    vingadores guerra infinita parte1 2018 assistir filmehd onlin dublado em complete legendado portugues

    vingadores guerra infinita parte1 2018 assistir filmehd onlin dublado em complete legendado portugues
    http://assistir-dublado-em.over-blog.com/pt-2018/04/vingadores-guerra-infinita-parte-1-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/overboard-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/a-morte-de-estaline-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues-8.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/the-forgiven-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/ilha-dos-caes-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/the-girl-in-the-fog-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues-2.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/the-girl-in-the-fog-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/see-you-up-there-2017-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/noite-de-jogo-2018-assistir-filmehd-onlin-dublado-em-complete-legendado-portugues.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-batalha-do-pacifico-a-revolta-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-alvo-triplo-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-acts-of-violence-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-madame-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-the-wailing-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-rampage-fora-de-controlo-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-truth-or-dare-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-death-wish-a-vinganca-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-winchester-filme-completo-dublado-onlin-legendado-portugues-oi.html
    http://assistir-dublado-em.over-blog.com/pt-2018/04/assistir-finding-your-feet-filme-completo-dublado-onlin-legendado-portugues-oi.html
    

    public by ngelesetsek modified Friday at 4:26:34 PM  30  0  2  0

    avengers-infinity-war-2018-guarda-streaming-ita-2018-completo-hditaliano

    https://ngelesetsek.hatenablog.com/entry/2018/04/14/192408
    http://guarda-ita.over-blog.com/2018/04/avengers-infinity-war-2018-guarda-streaming-ita-2018-completo-hditaliano.html
    http://guarda-ita.over-blog.com/2018/04/ghost-stories-il-sottile-fascino-della-paura-2018-guarda-streaming-ita-2018-completo-hditaliano.html
    http://guarda-ita.over-blog.com/2018/04/molly-s-game-2017-guarda-streaming-ita-2018-completo-hditaliano.html
    http://guarda-ita.over-blog.com/2018/04/doppio-amore-l-amant-double-2017-guarda-streaming-ita-2018-completo-hditaliano.html
    http://guarda-ita.over-blog.com
    http://guarda-ita.over-blog.com/2018/04/guarda-i-segreti-di-wind-river-streaming-ita-2018-completo-hditaliano-oi.html
    http://guarda-ita.over-blog.com/2018/04/guarda-a-quiet-place-un-posto-tranquillo-streaming-ita-2018-completo-hditaliano-oi.html
    http://guarda-ita.over-blog.com/2018/04/guarda-la-truffa-dei-logan-streaming-ita-2018-completo-hditaliano-oi.html
    http://guarda-ita.over-blog.com/2018/04/guarda-il-mistero-di-donald-c.streaming-ita-2018-completo-hditaliano-oi.html
    http://guarda-ita.over-blog.com/2018/04/guarda-rampage-furia-animale-streaming-ita-2018-completo-hditaliano-oi.html
    http://guarda-ita.over-blog.com/2018/04/guarda-the-silent-man-streaming-ita-2018-completo-hditaliano-oi.html
    

    public by Hlinh modified Tuesday at 7:42:49 AM  90  0  3  0

    Lookbook for Magento 2 by Magesolution

    Lookbook for Magento 2 is a magical tool which allows you to create multiple image collections for your products basing on the images you upload. What makes this extension so special and unique is that it offers a Pinning option for every image, i.e you can pin different images for products/ items onto the main image, which ultimately envisages a c
    https://www.magesolution.com/lookbook-for-magento-2.html						

    public by azazqadir modified Apr 11, 2018  159  1  4  0

    Using WooCommerce Rest API for Custom Dashboard

    Using WooCommerce Rest API (https://www.cloudways.com/blog/custom-dashboard-using-woocommerce-php-rest-api/ ) to create a Custom Dashboard
    <div class="container">
    
                                      <h2 class="sub-header">Customers List</h2>
    
                                      <div class='table-responsive'>
    
                                          <table id='myTable' class='table table-striped table-bordered'>
    
                                              <thead>
    
                                                  <tr>
    
                                                      <th>Email</th>
    
                                                      <th>Name</th>
    
                                                      <th>Billing Address</th>
    
                                                      <th>Total Orders</th>
    
                                                      <th>Total spent</th>
    
                                                      <th>Avatar</th>
    
                                                      <th>Actions</th>
    
                                                  </tr>
    
                                              </thead>
    
                                              <tbody>
    
                                                  <?php
    
                      foreach($customers as $customer){
    
    
    
                      echo "<tr><td>" . $customer["email"]."</td>
    
                                <td>" . $customer["first_name"].$customer["last_name"]."</td>
    
                                <td>" . $customer["billing"]["address_1"]."</td>
    
                                <td>" . $customer["orders_count"]."</td>
    
                                <td>" . $customer["total_spent"]."</td>
    
                                <td><img height='50px' width='50px' src='".$customer["avatar_url"]."'></td>
    
                                 <td><a class='open-AddBookDialog btn btn-primary' data-target='#myModal' data-id=".$customer['id']." data-toggle='modal'>Update</a>
    
                                 <a class='open-deleteDialog btn btn-danger' data-target='#myModal1' data-id=".$customer['id']." data-toggle='modal'>Delete</a></td></tr>";
    
                      }
    
    
    
                      ?>
    
                                              </tbody>
    
                                          </table>
    
                                      </div>
    
      </div>												

    public by engineerBry modified Apr 10, 2018  144  0  2  0

    sadh

    liasdas
    safasdfasdf

    public by engineerBry modified Apr 10, 2018  173  0  3  0

    amslndkas

    // Enter here the actual content of the snippet.						

    public by DaveMorton modified Apr 2, 2018  270  0  5  0

    connect.php - Database Abstraction Functions

    <?php
    /* 
     *  %[Filename]=[connect.php]%
     * This is a complete set of PDO abstraction functions
     * to make connecting, reading from and writing to a
     * MySQL database faster and easier. It's meant to be
     * used as a snippet in RapidPHP/WeBuilder from Karlis
     * Bluementals, but can easily be used in many other
     * web development IDEs. Items with %[something]% or
     * %[something]=[value]% are replaceable parameters
     * in RapidPHP/WeBuilder and can be swapped out with
     * whatever you like
     */
    
    /* DB Credentials */
    
    $dbh    = '%[Hostname]=[localhost]%';
    $dbn    = '%[DB Name]%';
    $dbu    = '%[Username]=[username]%';
    $dbp    = '%[Password]=[password]%';
    $dbPort = '%[DB Port]=[3306]%';
    
    $db = db_open($dbh, $dbu, $dbp, $dbn, $dbPort);
    
    /**
     * function db_open()
     * Connect to the database
     *
     * @internal param string $dbh    - db host
     * @internal param string $dbu    - db user
     * @internal param string $dbp    - db password
     * @internal param string $dbn    - db name
     * @internal param string $dbPort - db port
     * @return resource $dbConn - the database connection resource
     */
    function db_open($dbh, $dbu, $dbp, $dbn, $dbPort=3306)
    {
        try {
            $dbConn = new PDO("mysql:host=$dbh;dbname=$dbn;charset=utf8", $dbu, $dbp);
            $dbConn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
            $dbConn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
            $dbConn->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
        }
        catch (Exception $e)
        {
            exit('The application has encountered a problem with connecting to the database. With any luck, the following message will help: ' . $e->getMessage());
        }
        return $dbConn;
    }
    
    /**
     * function db_close()
     * Close the connection to the database
     *
     * @internal param resource $dbConn - the open connection
     *
     * @return null
     */
    function db_close()
    {
        return null;
    }
    
    /*
     * function db_fetch_all
     * Fetches all matching rows of data from the database
     *
     * @param (string) $sql - The SQL query to execute
     * @param (mixed) $params - either an array of placeholder/value pairs, or null, for no parameters
     * @param (string) $file - the path/filename of the file that the function call originated in
     * @param (string) $function - the name of the function that the function call originated in
     * @param (string) $line - the line number of the originating function call
     *
     * @return (mixed) $out - Either the row of data from the DB query, or false, if the query fails
     */
    
    function db_fetch_all($sql, $params = null, $file = 'unknown', $function = 'unknown', $line = 'unknown')
    {
        global $dbConn;
        try
        {
            $sth = $dbConn->prepare($sql);
            ($params === null) ? $sth->execute() : $sth->execute($params);
            return $sth->fetchAll();
        }
        catch (Exception $e)
        {
            //error_log("bad SQL encountered in file $file, line #$line. SQL:\n$sql\n", 3, _LOG_PATH_ . 'badSQL.txt');
            $pdoError = print_r($dbConn->errorInfo(), true);
            $psError  = print_r($sth->errorInfo(), true);
            return false;
        }
    }
    
    /*
     * function db_fetch_row
     * Fetches a single row of data from the database
     *
     * @param (string) $sql - The SQL query to execute
     * @param (mixed) $params - either an array of placeholder/value pairs, or null, for no parameters
     * @param (string) $file - the path/filename of the file that the function call originated in
     * @param (string) $function - the name of the function that the function call originated in
     * @param (string) $line - the line number of the originating function call
     *
     * @return (mixed) $out - Either the row of data from the DB query, or false, if the query fails
     */
    function db_fetch_row($sql, $params = null, $file = 'unknown', $function = 'unknown', $line = 'unknown')
    {
        global $dbConn;
        //error_log(print_r($dbConn, true), 3, _LOG_PATH_ . 'dbConn.txt');
        try
        {
            $sth = $dbConn->prepare($sql);
            ($params === null) ? $sth->execute() : $sth->execute($params);
            $out = $sth->fetch();
            return $out;
        }
        catch (Exception $e)
        {
            //error_log("bad SQL encountered in file $file, line #$line. SQL:\n$sql\n", 3, _LOG_PATH_ . 'badSQL.txt');
            $pdoError = print_r($dbConn->errorInfo(), true);
            $psError  = print_r($sth->errorInfo(), true);
            return false;
        }
    }
    
    /*
     * function db_write
     * Writes and/or updates data to the database
     *
     * @param (string) $sql - The SQL query to execute
     * @param (mixed) $params - either an array of placeholder/value pairs, or null, for no parameters
     * @param (string) $file - the path/filename of the file that the function call originated in
     * @param (string) $function - the name of the function that the function call originated in
     * @param (string) $line - the line number of the originating function call
     *
     * @return (mixed) $out - Either the number of rows affected from the DB query, or false, if the query fails
     */
    
    function db_write($sql, $params = null, $multi = false, $file = 'unknown', $function = 'unknown', $line = 'unknown')
    {
        global $dbConn;
        try
        {
            $sth = $dbConn->prepare($sql);
            switch (true)
            {
                case ($params === null):
                    $sth->execute();
                    break;
                case ($multi === true):
                    foreach ($params as $row)
                    {
                        $sth->execute($row);
                    }
                    break;
                default:
                    $sth->execute($params);
            }
            return $sth->rowCount();
        }
        catch (Exception $e)
        {
            $pdoError = print_r($dbConn->errorInfo(), true);
            $psError  = print_r($sth->errorInfo(), true);
            error_log("bad SQL encountered in file $file, line #$line. SQL:\n$sql\nPDO Error:\n$pdoError\nSTH Error:\n$psError\nEsception Message:\n" . $e->getMessage(), 3, _LOG_PATH_ . 'db_write.txt');
            return false;
        }
    }

    public by JKCPR modified Mar 31, 2018  286  0  4  0

    Fibonacci meh

    Loops over the Fibonnaci sequence...might be useful in an interview.
     
    function fibonacci(num, memo) {
      memo = memo || {};
    
      return memo[num]? memo[num]: num < 2? 1: memo[num] = fibonacci(num - 1, memo) + fibonacci(num - 2, memo);
    }
        for(var i=0;i<100;i=i+1){
            this.console.log(fibonacci(i));
        }

    public by Hlinh modified Mar 13, 2018  546  0  5  0

    Magento 2 Page Builder

    Magento 2 Page Builder is well-known extensions for build and configure Homepage, Category page, Product page, CMS pages… straightly and visually at front-end. Normally, developers have to add complicate command line to edit. Now, get rid of that complicated step and take it easy with our new Frontend Builder theme. By this way, you can experience
    https://www.magesolution.com/mgs-frontend-builder-theme-for-magento2.html					
    • Public Snippets
    • Channels Snippets