Skip to content

Instantly share code, notes, and snippets.

@ipepe
Created July 19, 2017 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipepe/2f6e1c19e71ab156d764ccd4b2bfdc2b to your computer and use it in GitHub Desktop.
Save ipepe/2f6e1c19e71ab156d764ccd4b2bfdc2b to your computer and use it in GitHub Desktop.
window.sleep = (time_in_miliseconds, callback)->
time = Date.now()+time_in_miliseconds
while(Date.now() < time)
Math.Pi/3.14
callback() if callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment