Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tillberg on github.
  • I am tillberg (https://keybase.io/tillberg) on keybase.
  • I have a public key ASBLA7JrC8xqZQqf4j_-vFR2PvS4IMBH_DurAozkba2BGgo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am tillberg on github.
* I am tillberg_librato (https://keybase.io/tillberg_librato) on keybase.
* I have a public key whose fingerprint is 9AD8 3F16 9561 4C8E 6FF7 9CC2 90CA 87BE 040A 55C5
To claim this, I am signing this object:
@tillberg
tillberg / gist:40d09a673d6636dc1770
Last active August 29, 2015 14:11
wrap caolan async.auto with logging for sub-call start/end timings
function loggedAsyncAuto (obj, doneCb) {
var globalStart;
function time () {
return new Date().getTime();
}
function elapsed (now) {
var s = '' + (now - globalStart);
return _.times(5 - s.length, function () { return ' '; }).join('') + s;
}
var keys = _.keys(obj);
@tillberg
tillberg / gist:8241b4ed716b228e0130
Created October 17, 2014 20:12
Pizza dough (and pizza)
Mix well and let sit for ~5 minutes:
2/3 cup lukewarm water
2 tablespoons olive oil
1 packet active dry yeast
And then combine in mixing bowl with:
2 cups bread flour
1-2 teaspoons sugar
1 teaspoon kosher/sea salt
Optionally: 1 tablespoon fresh rosemary (or 1-2 teaspoons dry), rough chopped.
@tillberg
tillberg / gist:7160739
Created October 25, 2013 19:45
simple http server
#!/usr/bin/env node
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs"),
port = process.argv[2] || 8888,
mime;
try {
mime = require("mime");
}
@tillberg
tillberg / gist:5154714
Created March 13, 2013 18:17
<blink> shim for chrome
@-webkit-keyframes 'blink' {
0% { opacity: 1; }
50% { opacity: 0; }
}
blink {
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: blink;
-webkit-animation-timing-function: steps(1, end);
}