Last active
October 30, 2017 02:22
-
-
Save haileylgbt/f62fdc4a0a287c911b940e5b928d263c to your computer and use it in GitHub Desktop.
Funny/nice messages written in code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// life motto | |
let you = {isSad = true}; | |
if (you.sad) { | |
you.sad = false; | |
beAwesome(you); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let you = {isSad = false, energy = 6, isAwake = true}; | |
while (you.isAwake) { | |
if (you.energy <= 10) { | |
sleep(you, bed); | |
// when sleep() is executed, isAwake = false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment