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; | |
}()); |
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
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
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
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
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 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
package hrkd { | |
import flash.events.Event; | |
import flash.events.IOErrorEvent; | |
import flash.net.URLLoader; | |
import flash.net.URLRequest; | |
import com.adobe.serialization.json.JSON; | |
public class jsonloader { | |
private var myLoader; | |
private var _func:Function; |
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 path = require('path'); | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var folderMount = function folderMount(connect, point) { | |
return connect.static(path.resolve(point)); | |
}; | |
module.exports = function(grunt) { | |
var pkg = grunt.file.readJSON('package.json'); | |
grunt.initConfig({ |
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
{ | |
"name": "htdocs", | |
"version": "0.0.0", | |
"description": "ERROR: No README.md file found!", | |
"main": "index.js", | |
"dependencies": { | |
"grunt": "~0.4.1" | |
}, | |
"devDependencies": { | |
"grunt": "*", |
OlderNewer