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://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller | |
// fixes from Paul Irish and Tino Zijdel | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { |
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
/* Scrolling shadows by @kizmarh */ | |
html { | |
background: #FFF; | |
} | |
.scrollbox { | |
position: relative; | |
z-index: 1; |
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
var request = require('request') | |
/** | |
* Handle multiple requests at once | |
* @param urls [array] | |
* @param callback [function] | |
* @requires request module for node ( https://github.com/mikeal/request ) | |
*/ | |
var __request = function (urls, callback) { |
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
/* | |
* JavaScript Pretty Date (http://ejohn.org/files/pretty.js) | |
* Copyright (c) 2011 John Resig (ejohn.org) | |
* Licensed under the MIT and GPL licenses. | |
* Modified by Natan Santolo. | |
*/ | |
// Takes an ISO time and returns a string representing how | |
// long ago the date represents. | |
function prettyDate(time){ |
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
var uniq = function (arr) { | |
var i, | |
len=arr.length, | |
out=[], | |
obj={}; | |
for (i=0; i<len; i++) { | |
obj[arr[i]]=0; |
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
// $('#content-with-images').imagesLoaded( myFunction ) | |
// execute a callback when all images inside a parent have loaded. | |
// needed because .load() doesn't work on cached images | |
// Useful for Masonry or Isotope, triggering dynamic layout | |
// after images have loaded: | |
// $('#content').imagesLoaded( function(){ | |
// $('#content').masonry(); | |
// }); |
NewerOlder