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 acquireaDependency () { | |
acquire('aDependency').addCallback(function(){ | |
p.emitSuccess() | |
}); | |
return p; | |
}; | |
function acquireanotherDependency () { | |
var p = new Promise; | |
acquireaDependency().addCallback(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
#!/bin/bash | |
# run this at the root of your v8 source code, ie, in node/deps/v8 | |
wget "http://v8-users.googlegroups.com/web/Doxyfile?gda=LVhBcjoAAADjrZAE-9R2rMGPaN-Pr3trc4eJPwcNe3RJQO3_Fpk23vxomvRFNBi6i_fp1nzw-Xv97daDQaep90o7AOpSKHW0" -O Doxyfile | |
doxygen | |
echo "docs are at: doxygen/index.html" | |
# or just point your web browser at http://izs.me/v8-docs/ |
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
multipart.parse(req).addCallback(function(parts) { | |
debug.log('multipart'); | |
resp.sendHeader(200, { | |
'Content-Type' : 'text/html', | |
'Set-Cookie' : session.setCookieHeader() | |
}); | |
resp.sendBody(html); | |
resp.finish(); | |
}); |
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
isaacs@sistertrain-lm:~/.homebrew | |
[11:09:09 3241] $ brew install couchdb -vd | |
==> Build Environment | |
PATH: /Users/isaacs/.homebrew/Cellar/icu4c/4.3.1/bin:/Users/isaacs/bin:/Users/isaacs/scripts:/Users/isaacs/.homebrew/bin:/Users/isaacs/.homebrew/sbin:/Users/isaacs/dev/js/narwhal/bin:/Users/isaacs/dev/js/jack/bin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/libexec:/sbin:/bin:/usr/X11R6/bin:/usr/local/include:/usr/include:/usr/X11R6/include:/Users/isaacs/appsup/TextMate/Support/bin | |
CFLAGS: -O4 -march=core2 -mmmx -msse4.1 -w -pipe | |
LDFLAGS: -L/Users/isaacs/.homebrew/Cellar/icu4c/4.3.1/lib -L/Users/isaacs/.homebrew/lib | |
CPPFLAGS: -I/Users/isaacs/.homebrew/Cellar/icu4c/4.3.1/include -isystem /Users/isaacs/.homebrew/include | |
MAKEFLAGS: -j2 | |
CC: /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 | |
CXX: /Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2 |
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
isaacs@sistertrain-lm:~/.homebrew | |
[11:27:14 3244] $ brew install couchdb -v | |
==> Build Environment | |
PATH: /Users/isaacs/.homebrew/Cellar/icu4c/4.3.1/bin:/Users/isaacs/bin:/Users/isaacs/scripts:/Users/isaacs/.homebrew/bin:/Users/isaacs/.homebrew/sbin:/Users/isaacs/dev/js/narwhal/bin:/Users/isaacs/dev/js/jack/bin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/libexec:/sbin:/bin:/usr/X11R6/bin:/usr/local/include:/usr/include:/usr/X11R6/include:/Users/isaacs/appsup/TextMate/Support/bin | |
CFLAGS: -O4 -march=core2 -mmmx -msse4.1 -w -pipe | |
LDFLAGS: -L/Users/isaacs/.homebrew/Cellar/icu4c/4.3.1/lib -L/Users/isaacs/.homebrew/lib | |
CPPFLAGS: -I/Users/isaacs/.homebrew/Cellar/icu4c/4.3.1/include -isystem /Users/isaacs/.homebrew/include | |
MAKEFLAGS: -j2 | |
CC: /Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 | |
CXX: /Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2 |
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 after (method, fn) { | |
var orig = this[method]; | |
if (orig === after || fn === after) throw new Error( | |
"That's not a good idea. Please don't be dumb." | |
); | |
this[method] = function aop_after () { | |
var ret = orig.apply(this, arguments); | |
var newArgs = Array.prototype.slice.call(arguments,0); | |
if (ret !== undefined) newArgs.concat(ret); | |
var nextRet = fn.apply(this, newArgs); |
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 r = new ReaderStream("/etc/passwd"), | |
w1 = new WriterStream("/tmp/passwd"), | |
w2 = new WriterStream("/tmp/passwd2"); | |
r.read(); | |
w1.write(r); | |
w2.write(w1).addListener("body", function (d) { | |
sys.debug("wrote: "+d); | |
}).addListener("complete", function () { | |
sys.debug("complete!"); |
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
Re: Ben and Jerry's Chubby Hubby is the Best Ice Cream there is out there!!! | |
From: Karyn McClelland | |
To: resume@foohack.com | |
Hi Isaac! | |
I found your resume on line while conducting research for a client and | |
I loved, loved did I say loved your note to recruiters and it is | |
because of it I am reaching out to you! I know you are keeping all of | |
your talented friends and colleagues to yourself (which I can sooo |
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
someObject | |
.chainableMethod("args") | |
.anotherOne("more", "args") | |
.foo("bar"); // the ";" means "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
// bad! returns undefined | |
return | |
{ | |
foo : "bar", // line labeled "foo", containing string-expression "bar" | |
bar : 1 // line labeled "bar" containing number expression "1" | |
} | |
// good! returns object |