Skip to content

Instantly share code, notes, and snippets.

View rhyzx's full-sized avatar

Bin Xin rhyzx

  • Hangzhou, China
View GitHub Profile
@rhyzx
rhyzx / next-usage.js
Last active December 12, 2015 01:18
next api for async
// **Compares to waterfall**
// waterfall usage
async.waterfall([
function(callback){
callback(null, 'one', 'two');
},
function(arg1, arg2, callback){
callback(null, 'three');
},
function(arg1, callback){
@rhyzx
rhyzx / slider.js
Last active October 11, 2015 01:58
slider for mobile browser
/*
<div id="slider">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
*/
!(function CSS3Slider() {
var slider = document.querySelector('#slider')