Skip to content

Instantly share code, notes, and snippets.

View aemkei's full-sized avatar

Martin Kleppe aemkei

View GitHub Profile
@aemkei
aemkei / LICENSE.txt
Created May 24, 2011 08:34 — forked from 140bytes/LICENSE.txt
140byt.es - Base64 Encoder / Decoder
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@aemkei
aemkei / geosyl.js
Created December 4, 2015 15:16
Geosyl.js – Convert Latitude longitude Pairs to Readable Words
// Geosyl.js – Convert Latitude longitude Pairs to Readable Words.
// based on David Troy's https://github.com/davetroy/hash-js
// also see: http://www.movable-type.co.uk/scripts/hash.html
// Distributed under the MIT License
geosyl = (function(){
var bits = [32, 16, 8, 4, 2, 1],
vocals = 'aeiou'.split(''),
consonants = 'kgsztdnhfpmyr'.split(''),
@aemkei
aemkei / puppeteer.md
Created August 1, 2012 14:01
Web Puppeteer Docs

Quick reference for Google's Web Puppeteer:

Members

attribute

Returns true iff the element is present and has the given attribute key/value pair. Since the name of the attribute specifying the element's class is either called 'class' or 'className', depending on the browser, use clazz() instead of this function for testing the value of the class with cross-browser compatibility.

blur

Returns true if the element is shown, and if it is, blurs it.

@aemkei
aemkei / 0. create local branch
Created April 27, 2009 10:38
push existing local branch to remote
#syntax
git checkout -b name_of_local_branch
#example
git checkout -b experimental
@aemkei
aemkei / README.md
Last active January 10, 2018 09:01
Tiny World Map Editor

Tiny World Map Editor

@aemkei
aemkei / README.md
Created March 6, 2012 21:44
Fuse - JS1K
  ____ __ __ ____ ____
/  __|  |  | ___/ ___| 
|  __|  |  |__  | __) 
|_|  `_____|____/____/  JS1K

FUSE

Spread the love by absorbing all the positive energy around you.

In this simple game you control an energy ball through seven levels of love.

@aemkei
aemkei / index.html
Created October 18, 2017 21:52
Tertis
<body onload="B=[y=x=t=r=S=0];setInterval(onkeyup=e=>{u=[x,y,r+4];e&&(g=e.which-38)-2?g?x-=g:r++:y++;C=[...B];for(h=i=8;i--;a+=x+3,b+=20-y,i>3?a<0|a>9|B[b]>>a&1|b<0?[x,y,r,h]=u:0:C[b]|=1<<a)for(a='456768696009181'[i%4+(i&2)*t],b=a&3,a>>=2,j=r;j--;a=f)f=b,b=2+!t-(t>5)-a;B=h||e?B:C.filter(_=>_-1023?x=y=1:++S-S,t=r%7);for(z=S,i=209;i;)Z.innerText=z+=' '+`_#
`[i--%11?C[i/11|0]>>i%11&1:2]},200)"id=Z>
@aemkei
aemkei / LICENSE.txt
Created August 23, 2011 08:35 — forked from 140bytes/LICENSE.txt
Mercator Projection - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@aemkei
aemkei / LICENSE.txt
Created October 8, 2011 15:11 — forked from 140bytes/LICENSE.txt
Digital Segment Display - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@aemkei
aemkei / LICENSE.txt
Created October 30, 2011 14:15 — forked from 140bytes/LICENSE.txt
hsl2rgb - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE