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 util = require('util'), | |
Stream = require('stream'); | |
var FastJSONStream = exports.FastJSONStream = function (options) { | |
this.bufferSize = options.bufferSize; | |
this._buffer = new Buffer(this.bufferSize); | |
}; | |
util.inherits(FastJSONStream, Stream); | |
FastJSONStream.prototype.write = function (chunk) { |
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
#!/bin/sh | |
read -p 'Project name: ' project_name | |
cat > .gitignore <<EOF | |
npm-debug.log | |
node_modules | |
.DS_Store | |
.*.sw[op] | |
EOF |
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
[maciej@pc07 node (master)]$ make test | |
make -C out BUILDTYPE=Release | |
make[1]: Nothing to be done for `all'. | |
ln -fs out/Release/node node | |
python tools/test.py --mode=release simple message | |
=== release test-fs-watch === | |
Path: simple/test-fs-watch | |
Command: out/Release/node /Users/maciej/dev/JavaScript/node/test/simple/test-fs-watch.js | |
--- TIMEOUT --- | |
=== release test-http-full-response === |
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
[maciej@PC04 node]$ gdb --args ./node deps/npm/cli.js | |
GNU gdb (GDB) Fedora (7.2-52.fc14) | |
Copyright (C) 2010 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i686-redhat-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |
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
[maciej@PC04 node-g]$ gdb --args ./node deps/npm/cli.js | |
GNU gdb (GDB) Fedora (7.2-52.fc14) | |
Copyright (C) 2010 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i686-redhat-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... |
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
GNU gdb (GDB) Fedora (7.2-52.fc14) | |
Copyright (C) 2010 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i686-redhat-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... | |
Reading symbols from /mnt/Data/Maciej/Programowanie/src/node-g/node...done. |
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
{ | |
"name": "super-secretz", | |
"dependencies": { | |
"secretz": "git+ssh://[email protected]:secretz/secretz.git" | |
}, | |
"bundleDependencies": [ "secretz" ] | |
} |
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
13:20 < Nexxy> mmalecki, I experienced OC spray today! | |
13:21 <+mmalecki> Nexxy: why would you even | |
13:21 < Nexxy> I wanted to make sure it worked | |
13:22 < Nexxy> it... it works. | |
13:22 <+mmalecki> what. | |
13:22 < Nexxy> I bought OC spray for my waifu and I and I read that you should test them to make sure they work | |
13:22 < Nexxy> so I did. | |
13:22 < Nexxy> and they do. | |
13:22 < Nexxy> really well. | |
13:23 < Nexxy> so well I had to take a nap after I was done choking |
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'); | |
fs.readFile('file', function (ಠ_ಠ, data) { | |
if (ಠ_ಠ) { | |
console.log("Node does not approve"); | |
} | |
}); |
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 http = require('http'), | |
fork = require('child_process').fork; | |
var serverHandle, server; | |
function log(l) { | |
console.log(process.pid + ': ' + l); | |
} | |
process.on('SIGUSR2', function () { |