Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix Geisendörfer felixge

View GitHub Profile
@felixge
felixge / duff.c
Created Apr 14, 2012 — forked from tj/duff.c
duff's device
View duff.c
#include <stdio.h>
int
odd() {
static int i = -1;
return i += 2;
}
int
main(void) {
@felixge
felixge / firefox.log
Created Sep 29, 2011
Showing that this keyword is referencing executing context
View firefox.log
red
red
green
yellow
red
@felixge
felixge / nodecamp.eu-talks-2011.md
Created Jun 17, 2011 — forked from a2800276/nodecamp.eu-talks-2011.md
A collection of talks and presentations held at nodecamp.eu 2011
View nodecamp.eu-talks-2011.md
View gist:392002
#!upstart
description "broodmother"
author "marak"
start on startup
stop on shutdown
script
exec sudo -u root /usr/local/bin/node /root/nodejitsu/server.js >> /var/log/brood.log 2>&1
end script
View gist:318885
Connection.prototype.query = function (sql, cb) {
if (!this._queries) this._queries = [];
cb.sql = sql;
this._queries.push(cb);
this.maybeDispatchQuery();
};
View 0001-Fixed-promise-late-chain.patch
From 799ef6ec9ca295fbb0e63f182c8a9a3f93892ff4 Mon Sep 17 00:00:00 2001
From: Yuichiro MASUI <masui@masuidrive.jp>
Date: Sat, 13 Feb 2010 03:27:01 -0800
Subject: [PATCH] Fixed: promise late chain
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Felix Geisendörfer <felix@debuggable.com>
---
View fab-promise.js
function loadConfig() {
return posix.cat('config.json')(function(error, config) {
return error || posix.cat('configuration.json')
})(function(error, config) {
return error || JSON.parse(config);
})
}