artimys
4/14/2017 - 6:53 PM

Konami code

entered = []
theCode = [38,38,40,40,37,39,37,39,66,65,13]

checkCode = ->
	***DO SHIT*** if entered.toString() is theCode.toString()
	entered = []

# Watch for the code
$('html').keydown (e) ->
	entered.push e.keyCode
	checkCode() if e.keyCode is 13