Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am walling on github.
  • I am walling (https://keybase.io/walling) on keybase.
  • I have a public key whose fingerprint is 98EE 3E03 D907 B87C 06B8 E054 4DE0 3A0D C7F3 64FA

To claim this, I am signing this object:

@walling
walling / bad-transform-stream.js
Created August 19, 2014 14:38
Bad Transform Stream
// dd if=/dev/urandom of=file count=10 bs=1m
var through2 = require('through2');
var fs = require('fs');
fs.createReadStream('file').pipe(slowTransform()).pipe(process.stdout);
function slowTransform() {
return through2(function(buffer, encoding, callback) {
var self = this;
@walling
walling / server.js
Created July 30, 2014 09:21
node-async-caching-example
var common = require('common'); // npm install --save common
/**
* Super nice funktion som laver fetcher noget data asynkront.
*/
function loadThings(id, callback) {
// ...
}