Skip to content

Instantly share code, notes, and snippets.

@zachpendleton
Created November 8, 2011 20:37
Show Gist options
  • Save zachpendleton/1349119 to your computer and use it in GitHub Desktop.
Save zachpendleton/1349119 to your computer and use it in GitHub Desktop.
setTimeout roulette
(function(){
var old_timeout = setTimeout;
setTimeout = function(fn, timeout) {
if (Math.round(Math.random() * 6) === 1) {
throw 'The cogs of the software industry are greased by the blood of unwary developers. Today that blood is yours.'
} else {
old_timeout(fn, timeout);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment