Skip to content

Instantly share code, notes, and snippets.

@christianmendoza
Forked from BenDol/adam_awesome.java
Last active August 29, 2015 14:27
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 christianmendoza/58d4426e77a827605e72 to your computer and use it in GitHub Desktop.
Save christianmendoza/58d4426e77a827605e72 to your computer and use it in GitHub Desktop.
Christian is Awesome!
// Object Oriented Life Motto
var me = world.getPerson("Christian Mendoza");
if(me !== null) {
while(me.isAlive()) {
if(me.isSad()) {
me.setSad(FALSE);
me.executeAwesomeness();
console.log("huzzah");
}
else {
me.fistBumpClosestPerson();
console.log("w00t");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment