This file contains 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
(function($){ | |
//Finding min and max values in array from http://snippets.dzone.com/posts/show/769 | |
Array.prototype.min = function(){ return Math.min.apply({},this) }; | |
Array.prototype.max = function(){ return Math.max.apply({},this) }; | |
$.fn.masonry = function() { | |
this.each(function() { | |
var wall = $(this); |
This file contains 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
/** | |
* requestAnimationFrame polyfill by Erik Möller & Paul Irish et. al. | |
* https://gist.github.com/1866474 | |
* | |
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
**/ | |
/*jshint asi: false, browser: true, curly: true, eqeqeq: true, forin: false, newcap: true, noempty: true, strict: true, undef: true */ |
This file contains 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
// add event helper | |
function addEvent( obj, type, fn ) { | |
if ( obj.addEventListener ) { | |
obj.addEventListener( type, fn, false ); | |
} else if ( obj.attachEvent ) { | |
obj.attachEvent( "on" + type, fn ); | |
} | |
} | |
function cornifyThisGuy() { |
This file contains 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
function debounce( fn, threshold ) { | |
var timeout; | |
return function() { | |
clearTimeout( timeout ); | |
var args = arguments; | |
var _this = this; | |
timeout = setTimeout( function() { | |
fn.apply( _this, args ); | |
}, threshold || 100 ); | |
} |
This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<style media="screen"> | |
</style> |
This file contains 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
/* sidebars */ | |
.Trends, | |
.wtf-module, | |
.RelatedUsers, | |
.SignupCallOut, | |
/* in timeline */ | |
.wtf-module.has-content, | |
.tweet.dismissable-content, | |
.LiveVideoHomePageModuleContainer, | |
.WtfLargeCarouselStreamItem, /* WTF in timeline */ |
This file contains 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
/*! | |
* getStyleProperty by kangax | |
* http://perfectionkills.com/feature-testing-css-properties/ | |
*/ | |
/*jshint browser: true, strict: true, undef: true */ | |
( function( window ) { | |
'use strict'; |
This file contains 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
// http://candies.aniwey.net/ | |
// enter in console | |
candies.nbrOwned = Number.POSITIVE_INFINITY; | |
lollipops.nbrOwned = Number.POSITIVE_INFINITY; | |
quest.setMaxLandOrder( 20 ); | |
chocolateBars.nbrOwned = 10; | |
sword.specialPower = 100; | |
for ( var potionName in potions.list ) { |
This file contains 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
/* sidebars */ | |
.Trends, | |
.wtf-module, | |
.RelatedUsers, | |
.SignupCallOut, | |
/* in timeline */ | |
.wtf-module.has-content, | |
.tweet.dismissable-content, | |
.LiveVideoHomePageModuleContainer, | |
.WtfLargeCarouselStreamItem, /* WTF in timeline */ |