- German
- French
- Spanish
- Japanese
- Chinese (which?)
- Korean
- Russian
- Italian
- Arabic
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
writing "1234567890abcdef" 100 times | |
native : 4ms (25000 ops/s) | |
multilevel direct : 17ms (5882 ops/s) | |
stream.js:94 | |
throw er; // Unhandled stream error in pipe. | |
^ | |
stream.js:94 |
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 cluster = require('cluster') | |
var multilevel = require('multilevel') | |
var levelup = require('levelup') | |
var db = levelup('./data') | |
cluster.setupMaster({ | |
exec: 'worker.js' | |
}) | |
cluster.fork() |
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 record = { | |
id: idgen(20) , | |
data: { | |
ip: parts[0], | |
agent: parts[1], | |
url: parts[2], | |
referrer: parts[3], | |
mobile: mobile | |
} | |
}; |
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
.clearfix { | |
*zoom: 1; | |
} | |
.clearfix:before, | |
.clearfix:after { | |
display: table; | |
content: ""; | |
line-height: 0; | |
} | |
.clearfix:after { |
unix is not fragmented
darwin: lsof -i | grep LISTEN
solaris: lsof -p
linux: netstat -lnp
openbsd: netstat -nat | grep LISTEN
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 fs = require('fs') | |
var _ = require('lodash') | |
var Benchmark = require('benchmark').Benchmark | |
var suite = new Benchmark.Suite | |
var filter = Benchmark.filter | |
suite.add('readFileSync#toString', function () { | |
var file = fs.readFileSync('./changelog').toString() |
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
$ ssh -D 0.0.0.0:5555 [email protected] |
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
window.addEventListener("load",function() { | |
setTimeout(function(){ | |
window.scrollTo(0, 1); | |
}, 0); | |
}); |
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 repourl () { npm view $1 repository.url | tee >(pbcopy) ; } |