Skip to content

Instantly share code, notes, and snippets.

@mapsam
Last active December 19, 2015 19:08
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 mapsam/6003682 to your computer and use it in GitHub Desktop.
Save mapsam/6003682 to your computer and use it in GitHub Desktop.
yolo.js pseudo
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