Skip to content

Instantly share code, notes, and snippets.

View xiaoluoboding's full-sized avatar
💻
Coding a better future

Robert Shaw xiaoluoboding

💻
Coding a better future
View GitHub Profile
@xiaoluoboding
xiaoluoboding / rAF.js
Created June 7, 2017 04:37 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// 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
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@xiaoluoboding
xiaoluoboding / 0_reuse_code.js
Created July 22, 2016 08:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console