Skip to content

Instantly share code, notes, and snippets.

@seebees
seebees / npm test on OSX
Created December 5, 2011 23:38
bouncy Failures
C:\proxy\node_modules\bouncy\test>for %i in (raw_destroy.js, ws.js, keep_alive_leak.js) do node %i > fail.txt
result:
# destroy the socket during piping
ok 1 should be equal
not ok 2 Expected to throw
---
file: timers.js
line: 84
//Problem: area is not defined
var mapmove = io
.of('/mapmove')
.on('connection', function (socket) {
var area = 0;
socket.on('areachange', function(data) {
area = removeSocketFromArea.call(this, data);
});
});
@seebees
seebees / eight
Created November 25, 2011 00:34
GYP build output
LD_LIBRARY_PATH=/Users/remery/Documents/GIT/node_fork/out/Debug/lib.host:/Users/remery/Documents/GIT/node_fork/out/Debug/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/tools/gyp; mkdir -p /Users/remery/Documents/GIT/node_fork/out/Debug/obj/gen; python ../../tools/js2c.py "/Users/remery/Documents/GIT/node_fork/out/Debug/obj/gen/experimental-libraries.cc" EXPERIMENTAL off ../../src/macros.py ../../src/proxy.js ../../src/weakmap.js
touch /Users/remery/Documents/GIT/node_fork/out/Debug/obj.host/deps/v8/tools/gyp/js2c.stamp
g++ '-DENABLE_DEBUGGER_SUPPORT' '-DDEBUG' '-D_DEBUG' '-DENABLE_DISASSEMBLER' '-DV8_ENABLE_CHECKS' '-DOBJECT_PRINT' -I../deps/v8/src -Os -gdwarf-2 -fvisibility=hidden -Wnewline-eof -mmacosx-version-min=10.4 -arch i386 -fno-strict-aliasing -Wall -Wendif-labels -W -Wno-unused-parameter -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -MMD -MF /Users/remery/Documents/GIT/node_fork/out/Debug/.deps//Users/remery/Documents/GIT/node_fork/out/Debug/
@seebees
seebees / first
Created November 24, 2011 16:49
2061 build output
$ make -C out V=1
cc '-DHTTP_PARSER_STRICT=0' '-DDEBUG' '-D_DEBUG' -I../deps/http_parser -Os -gdwarf-2 -fvisibility=hidden -Wnewline-eof -mmacosx-version-min=10.4 -arch i386 -fno-strict-aliasing -Wall -Wendif-labels -W -Wno-unused-parameter -MMD -MF /Users/remery/Documents/GIT/node_fork/out/Debug/.deps//Users/remery/Documents/GIT/node_fork/out/Debug/obj.target/http_parser/deps/http_parser/http_parser.o.d.raw -c -o /Users/remery/Documents/GIT/node_fork/out/Debug/obj.target/http_parser/deps/http_parser/http_parser.o ../deps/http_parser/http_parser.c
rm -f /Users/remery/Documents/GIT/node_fork/out/Debug/libhttp_parser.a && libtool -static -o /Users/remery/Documents/GIT/node_fork/out/Debug/libhttp_parser.a /Users/remery/Documents/GIT/node_fork/out/Debug/obj.target/http_parser/deps/http_parser/http_parser.o
cc '-DL_ENDIAN' '-DOPENSSLDIR="ssl"' '-DENGINESDIR="ssl/lib/engines"' '-DOPENSSL_THREADS' '-DPURIFY' '-D_REENTRANT' '-DTERMIOS' '-DDEBUG' '-D_DEBUG' -I../deps/openssl -I../deps/openssl/openssl -I../deps
@seebees
seebees / gist:1196692
Created September 6, 2011 05:50
things to talk about node http
//test
//get a request
var test = http.request();
//cheat and push things into the buffer
test.output.push('some test data');
test.output.push('more data');
test.outputEncodings.push();
test.outputEncodings.push();