Skip to content

Instantly share code, notes, and snippets.

View aricooperdavis's full-sized avatar
🗿
Living

Ari Cooper Davis aricooperdavis

🗿
Living
View GitHub Profile
@edewaal97
edewaal97 / iCal.php
Last active February 23, 2024 20:35 — forked from seebz/iCal.php
iCal PHP Parser
<?php
// SOURCE: https://gist.github.com/seebz/c00a38d9520e035a6a8c
class iCal
{
/**
* @var string
*/
public $title;
@JackNUMBER
JackNUMBER / konami.js
Created February 25, 2016 01:01
Vanilla JS Konami Code
var user_keys = [],
konami = '38,38,40,40,37,39,37,39,66,65';
document.onkeydown = function(e){
user_keys.push(e.keyCode)
if (user_keys.toString().indexOf(konami) >= 0) {
console.log('KONAMI!');
user_keys = [];
}
}