Skip to content

Instantly share code, notes, and snippets.

@MattSurabian
Created June 26, 2013 16:46
Show Gist options
  • Save MattSurabian/5869124 to your computer and use it in GitHub Desktop.
Save MattSurabian/5869124 to your computer and use it in GitHub Desktop.
FilibusterJS: The unfortunately life like filibuster simulator.
var issue = 'solve this mess';
var secretArgueTime = Math.floor(Math.random()*86400000); // If only it didn't actually boil down to this
filibuster = setInterval(function(){
console.log('We must '+issue);
},500);
opposition = setInterval(function(){
console.log('Never!');
},500);
setTimeout(function(){
clearInterval(filibuster);
clearInterval(opposition);
switch(Math.round(Math.random()*1)){
case 0:
console.log('We must '+issue);
console.log("Congratulations, your filibuster worked! We're going to finally "+issue);
break;
default:
console.log('Never!');
console.log("Better luck next time! Your filibuster didn't work or has been invalidated");
}
}, secretArgueTime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment