Last active
December 19, 2015 19:08
-
-
Save mapsam/6003682 to your computer and use it in GitHub Desktop.
yolo.js pseudo
This file contains hidden or 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
var code, | |
function yolo(e) { //gets the character code of whatever the user presses, this function will be run on any keyboard press, regardless of what we want specifically | |
code = String.fromCharCode(e.charCode); | |
if (code == "35") { | |
specificEgg(); | |
} | |
} | |
function specificEgg() { | |
// the thing you want here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment