This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var intv = 5000, | |
| timer = setInterval(function(){ | |
| //function | |
| },intv); | |
| clearInterval(timer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var dur = 1000, | |
| ease = "easeOutExpo"; | |
| $("hoo").animate( | |
| {bar:0}, | |
| dur, | |
| ease, | |
| function(){ | |
| //callback | |
| } | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fncObj = { | |
| val : 0, | |
| method : function(){ | |
| console.log(this.val); | |
| } | |
| } | |
| var obj = { | |
| val:1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package hrkd { | |
| import flash.display.Sprite; | |
| import flash.display.Bitmap; | |
| import flash.display.BitmapData; | |
| import flash.events.*; | |
| import flash.net.*; | |
| import flash.display.Loader; | |
| public class imageloader { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| guard 'livereload' do | |
| watch(/\.html?/) | |
| watch(/\.css/) | |
| watch(/\.js/) | |
| watch(/\.png/) | |
| end | |
| #guard 'sass', :input => 'sass', :output => 'css' | |
| guard 'compass' do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //require jQuery | |
| $.ajax({ | |
| url: "foo", | |
| dataType: "bar", | |
| data:{ | |
| "foo":"bar" | |
| }, | |
| success: function(data, textStatus, xhr){ | |
| result = data; | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ie = (function(){ | |
| var undef, v = 3, div = document.createElement('div'); | |
| while ( | |
| div.innerHTML = '<!--[if gt IE '+(++v)+']><i></i><![endif]-->', | |
| div.getElementsByTagName('i')[0] | |
| ); | |
| return v> 4 ? v : undef; | |
| }()); |
NewerOlder