Skip to content

Instantly share code, notes, and snippets.

@ptasker
Created May 7, 2015 14:54
Show Gist options
  • Save ptasker/4677e93462caef51f0f0 to your computer and use it in GitHub Desktop.
Save ptasker/4677e93462caef51f0f0 to your computer and use it in GitHub Desktop.
NodeJS christmas
mymodel.findOne({
'user': this.req.user,
}, function(err, data){
doSomethingWithData(data, function(err, data){
doSomethingWithELSEWithData(data, function(err, data){
doSomethingMOREWithData(data, function(err, data){
haveAnaneurysm(data, function(err, data){
//die
});//Ho
});//Ho
});//Ho
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment