Skip to content

Instantly share code, notes, and snippets.

@eliperelman
Forked from nathansmith/chipotle_lunch.js
Created February 8, 2012 18:31
Show Gist options
  • Save eliperelman/1771974 to your computer and use it in GitHub Desktop.
Save eliperelman/1771974 to your computer and use it in GitHub Desktop.
person.eat(food, function() {
if (typeof food === 'tacobell') {
// Kinda yum...
setInterval(function() {
// Oh noes!
// http://www.hulu.com/watch/10304/saturday-night-live-colon-blow
colon.blow();
}, 120000); // 2 hrs.
}
});
@ksafranski
Copy link

Good choice on setInterval over setTimeout, that function is never called just once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment