Skip to content

Instantly share code, notes, and snippets.

@tugluck
tugluck / promises.md
Created October 22, 2012 00:35 — forked from domenic/promises.md
You're Missing the Point of Promises

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
    // the rest of your code goes here.
});
@tugluck
tugluck / gist:3928688
Created October 21, 2012 22:07 — forked from mmm/gist:1406018
decent-sized juju stack
ganymede:~/projects/wmf/juju/bin $ cat juju-deploy-stack-bigger
#!/bin/bash
set -x
juju_root="/home/mmm/projects/wmf/juju"
juju_env=${1:-"-ecanonical"}
###