Skip to content

Instantly share code, notes, and snippets.

@sebastiaanvisser
Created August 26, 2014 15:02
Show Gist options
  • Save sebastiaanvisser/ddc7a217c97803b2448d to your computer and use it in GitHub Desktop.
Save sebastiaanvisser/ddc7a217c97803b2448d to your computer and use it in GitHub Desktop.
Utrecht-style alignment.
var user =
{ username : "foo bar"
, password : "super secret"
, sessionHistory : [ "Tue Aug 26 2014 16:58:14 GMT+0200 (CEST)"
, "Wed Aug 27 2014 16:58:14 GMT+0200 (CEST)"
, "Fri Aug 29 2014 16:58:14 GMT+0200 (CEST)"
]
, moneys : { amount : "-12"
, currency : "EUR"
}
};
process( user
, function (u) { return u.moneys.amount * 2; }
, function (e)
{
return "SUPER_ERROR: " + e;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment