Skip to content

Instantly share code, notes, and snippets.

View keybase
### Keybase proof
I hereby claim:
* I am yongxu on github.
* I am renyongxu (https://keybase.io/renyongxu) on keybase.
* I have a public key ASD2FZRW74P6V6ZcHIAWbq4gYUoeRZytyz7zir6L0Lj5Fwo
To claim this, I am signing this object:
@yongxu
yongxu / linting_vote.js
Last active May 6, 2016
lets talk about this on friday
View linting_vote.js
{
"parser": "babel-eslint",
"plugins": ["react"],
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"rules": {
@yongxu
yongxu / Standard ML and Objective Caml, Side by Side
Created Feb 8, 2015
Standard ML and Objective Caml, Side by Side
View Standard ML and Objective Caml, Side by Side
http://www.mpi-sws.org/~rossberg/sml-vs-ocaml.html
View Element Resize Detection.js
(function(){
var attachEvent = document.attachEvent;
var isIE = navigator.userAgent.match(/Trident/);
console.log(isIE);
var requestFrame = (function(){
var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ||
function(fn){ return window.setTimeout(fn, 20); };
return function(fn){ return raf(fn); };
})();