Last active
October 11, 2017 23:45
-
-
Save tmathews/f1f89ba786dd2e68dabbb019b2658a28 to your computer and use it in GitHub Desktop.
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
function k (c, b) { | |
var x = c.concat() | |
window.addEventListener('keyup', function(e) { | |
if (x.shift() != e.keyCode) x = c.concat() | |
if (!x.length && x.concat(c)) b() | |
}) | |
} | |
k([38,38,40,40,37,39,37,39,66,65], alert.bind(null, 'hi')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment