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 August 9, 2011 17:30 — forked from 140bytes/LICENSE.txt
Game of Life - 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 August 5, 2011 10:24 — forked from 140bytes/LICENSE.txt
rotate3D - 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 / ǝdoɔǝd46ǝsɐq
Created May 31, 2011 21:36
A quick Base64 decoder hack
{ǝ nɹnʇǝɹ;[36&6*d<<ɔ]q=+ǝ('\\\='\\\:q¿[d-ɟ]ɐ=q;--d&&(3%ɟ)!;(++ɟ)ʇɐǝdoɔɹɐɥɔ˙ɐ|8<<ɔ=ɔ)ɹoɟ)4=d;[1]q;'\\\'\\\=ɟ=ǝ)ɹoɟ}(ɟ,ǝ,d,ɔ,q,ɐ)ǝdoɔǝd46ǝsɐq noıʇɔnnɟ
@aemkei
aemkei / LICENSE.txt
Created May 24, 2011 16:06 — forked from 140bytes/LICENSE.txt
140byt.es - Base64 encoder
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 / README.md
Created May 24, 2011 14:20 — forked from arturh/LICENSE.txt
140byt.es - Base64 encoder
@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
/*
* #js1k - JavaScript Encoder / Decoder
*
* Simply paste your code and shrink it down to about 50%.
* This algorithm uses Bit-Shifting to pack two chars into one.
* The encoder is included in the output and weights only 89 bytes.
*
* Note: This will reduce the character count only, but not the file size!
*
* by Martin Kleppe <kleppe@gmail.com>
@aemkei
aemkei / PastryKit.js
Created December 16, 2009 11:17 — forked from collin/gist:257557
PastryKit - Apple iPhone Webdev Library
const PKSupportsTouches = ("createTouch" in document);
const PKStartEvent = PKSupportsTouches ? "touchstart" : "mousedown";
const PKMoveEvent = PKSupportsTouches ? "touchmove" : "mousemove";
const PKEndEvent = PKSupportsTouches ? "touchend" : "mouseup";
function PKUtils() {}
PKUtils.assetsPath = "";
PKUtils.t = function (b, a) {
return "translate3d(" + b + "px, " + a + "px, 0)"
};
git clone git://github.com/dchelimsky/rspec.git
cd rspec
git checkout 1.1.8
rake gem
rake install_gem
# replace 123 with you line number
git blame --porcelain -L123,123 folder/file.ext | grep summary