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
From 87a1eb5c64fb14cc3d548b67337ae4ba37635233 Mon Sep 17 00:00:00 2001 | |
From: Jxck <block.rxckin.beats@gmail.com> | |
Date: Sun, 17 Apr 2011 05:05:07 +0900 | |
Subject: [PATCH] mod curl progress-bar option | |
--- | |
nvm.sh | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/nvm.sh b/nvm.sh |
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 mongoose = require('../lib/mongoose') | |
, Schema = mongoose.Schema; | |
var db = mongoose.connect('mongodb://localhost:27017/mydb'); | |
var User = new Schema({ | |
name : String | |
, age : Number | |
}); |
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
#!/usr/bin/env ruby | |
ARGF.each do |line| | |
line.chomp! | |
words = line.split(' ') | |
printf("%s,1\n", words[8]) | |
end |
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
function noop(){}; | |
function para() { | |
var list = arguments; | |
return function(req, res, next) { | |
var current = 0; | |
var len = list.length; | |
for (var i = 0; i < len; ++i) { | |
var fun = list[i]; | |
fun(req, res, function() { |
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 hoge = { | |
num: 10, | |
twi: function(n, cb){ | |
cb(n * 2); | |
}, | |
add: function(a, cb){ | |
this.twi(a, function(ans) { | |
cb(ans + this.num); | |
}.bind(this)); | |
} |
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
.DS_Store |
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 stream = require('stream') | |
, util = require('util') | |
, log = console.log.bind(console) | |
; | |
// 本来は 'drain','error','close','pipe' イベントが必要 | |
function MyStream() { | |
this.writable = true; | |
this.buf = []; | |
} |
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
みてもいいよ。 |
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
node_modules |
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
node_modules |