Skip to content

Instantly share code, notes, and snippets.

View isaacs's full-sized avatar
🔮
only way out is through

isaacs isaacs

🔮
only way out is through
View GitHub Profile
function acquireaDependency () {
acquire('aDependency').addCallback(function(){
p.emitSuccess()
});
return p;
};
function acquireanotherDependency () {
var p = new Promise;
acquireaDependency().addCallback(function () {
#!/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/
@isaacs
isaacs / gist:251295
Created December 8, 2009 00:26 — forked from Marak/gist:251291
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();
});
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
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
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);
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!");
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
someObject
.chainableMethod("args")
.anotherOne("more", "args")
.foo("bar"); // the ";" means "done"
// 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