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 / 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)"
};
@aemkei
aemkei / Selenuim for Rails 2.2
Created April 21, 2009 16:36 — forked from ubilabs/Selenuim for Rails 2.2
Selenium for Rails 2.2
# Install Selenium as a plugin:
script/plugin install http://svn.openqa.org/svn/selenium-on-rails/stable/selenium-on-rails/
# Copy configuration file:
cp vendor/plugins/selenium-on-rails/selenium.yml.example config/selenium.yml
# Be sure to setup your browsers. Add this to run Firefox with a clean profile:
# /Applications/Firefox.app/Contents/MacOS/firefox-bin -P selenium
# Optional: Install ThoughtBot Shoulda gem:
@aemkei
aemkei / gist:58756
Created February 5, 2009 15:37 — forked from pete/gist:57898
Experiments in revision control: Curry recipe.
My personal recipe for Japanese curry, which has mutated over the years and is
now open-source thanks to github, hot damn. Some of the ingredients are not
very Japanese, but curry came to Japan from England which got it from India to
begin with, so whatever.
1.5 - 2 lbs. of meat, prefer thin-sliced beef (komagire), pork works, too.
Thin-sliced stuff is always best, but in a pinch stewing beef works. Bacon
works surprisingly well. Chicken will work, technically, but if you must,