Skip to content

Instantly share code, notes, and snippets.

View batshoes's full-sized avatar

James Middlemiss batshoes

View GitHub Profile
@batshoes
batshoes / konamify.js
Last active April 6, 2021 22:14
Konami Code Easter Egg
// Insert this into your already sourced JS file, or link to it in the HEAD of your DOM.
// Add whatever you like to the keystroke keychain match.
document.addEventListener('DOMContentLoaded', () => {
'use strict';
// Standard Konami Code keystroke chain.
// Up Up Down Down Left Right Left Right B A Start
konamify("arrowuparrowuparrowdownarrowdownarrowleftarrowrightarrowleftarrowrightbaenter");
});
@batshoes
batshoes / cookie-util.coffee
Last active October 28, 2016 14:06 — forked from jamesflorentino/cookie-util.coffee
CoffeeScript // Cookie Handling