Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save francescoagati/392065 to your computer and use it in GitHub Desktop.
Save francescoagati/392065 to your computer and use it in GitHub Desktop.
run_in_context: (fn,context) ->
if fn.length>0
fn.apply null,[context]
else
fn.apply context
process: (n,fn) ->
run_in_context fn,n
process 4, (number) ->
debug number
process 4, ->
debug @
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment