Skip to content

Instantly share code, notes, and snippets.

View chunpu's full-sized avatar
🎯
Focusing

chunpu chunpu

🎯
Focusing
  • 360
  • China
View GitHub Profile
@chunpu
chunpu / co.js
Last active January 1, 2016 00:39
it is a simple co works like TJ's co
function co(Gen) {
var gen = Gen
if (isGeneratorFunction(gen)) {
gen = gen()
}
return function(cb) {
next()
function next(err, arg) {
if (err) {
cb(err)
@chunpu
chunpu / gist:6118662
Created July 31, 2013 01:45
python yaml pyyaml style
yaml.save_load(obj, default_flow_style=False)
@chunpu
chunpu / gist:5790625
Last active December 18, 2015 13:29
sort
[5,10,15].sort()
迭代方法 every filter forEach map some
markdownpad++
自定义滚轮
ACE Editor