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
$(document).bind('FB.ready',function(){ | |
console.log('FB is ready'); | |
FB.api('/me',function(response){ | |
console.log(response); | |
}); | |
}); | |
var _FB = { | |
count: 0 | |
,interval : setInterval(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
/* | |
--- | |
name: Slick.Finder | |
description: The new, superfast css selector engine. | |
provides: Slick.Finder | |
requires: Slick.Parser | |
... | |
*/ | |
(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
/* | |
--- | |
name: Browser | |
description: The Browser Object. Contains Browser initialization, Window and Document, and the Browser Hash. | |
license: MIT-style license. | |
requires: [Array, Function, Number, String] |
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
# MooTools snippets | |
# http://blog.sethladd.com/2012/01/vanilla-dart-ftw.html | |
## Document is ready | |
window.addEvent('domready', function(){ | |
//code | |
}); | |
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
html, | |
body { | |
margin: 0 auto; | |
height: 100%; | |
// width: 252px; | |
// width: 320px; | |
// width: 100%; | |
// padding: 48px 34px 60px; | |
} |
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
/** | |
* Single onOrientationChange attach/detatch. | |
* This will only attach one orientationchange event. | |
* Functions attached to the event will be stored in an array to be excuted when the event occurs. | |
* | |
* @author Garrick Cheung | |
* | |
* @license MIT-style license | |
* | |
* @copyright Copyright (c) 2012 [Garrick Cheung](http://garrickcheung.com/) |
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 isEqual = function(a, b){ | |
if (a === b) return true; | |
if (a === void 0 || a === null || b === void 0 || b === null) { | |
return (a == void 0 && b == void 0); | |
} | |
// if (jasmine.isDomNode(a) && jasmine.isDomNode(b)) { | |
// return a === b; | |
// } |
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
/** | |
* Comparative and equality utility methods. | |
* Inspired/influenced/copied from Underscore.js | |
*/ | |
(function(context){ | |
var toString = Object.prototype.toString, | |
hasOwnProperty = Object.prototype.hasOwnProperty; |
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 tmp = function(){}; | |
tmp.prototype = other.prototype; | |
tmp = new Class({ | |
Extends: tmp, | |
initialize: function(){ | |
other.apply(this, arguments); | |
} |