Skip to content

Instantly share code, notes, and snippets.

@muloka
Created October 2, 2016 02:39
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 muloka/7fcc9558999976e64ed6502a795764e7 to your computer and use it in GitHub Desktop.
Save muloka/7fcc9558999976e64ed6502a795764e7 to your computer and use it in GitHub Desktop.
Coffee coffee = new Stimulant('coffee')
function code(coffee) {
var keep_coding = true
while (keep_coding) {
if (coffee.Empty) {
coffee.Refill()
}
coffee.Consume()
keep_coding = (coffee.refill_count != 0)
}
}
code(coffee)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment