Skip to content

Instantly share code, notes, and snippets.

View grimen's full-sized avatar

Jonas Grimfelt grimen

View GitHub Profile
@grimen
grimen / .env
Last active December 24, 2015 20:29
Automaticall generate unique/predicatable/consistent $PORT for each project based on fingerprinting of `.powder` and make Pow Proxy aware of it.
# custom ENV variables
@grimen
grimen / libcaca.rb
Last active December 24, 2015 18:49
require 'formula'
class Libcaca < Formula
homepage 'http://caca.zoy.org/wiki/libcaca'
url 'http://caca.zoy.org/files/libcaca/libcaca-0.99.beta18.tar.gz'
version '0.99b18'
sha1 '0cbf8075c01d59b53c3cdfec7df9818696a41128'
option 'with-imlib2', 'Build with Imlib2 support'
@grimen
grimen / whosample.rejected.txt
Last active December 21, 2015 23:38
Sample submissions rejected by Who Sampled for no valid reason.
Sample submissions that WhoSampled rejected for no valid reason:
--
O.C. & Apollo Brown - "The First 48" | http://youtube.com/watch?v=oYOitap4EUQ
~ | Cream - "White Room" | http://youtube.com/watch?v=pkae0-TgrRU
--
O.C. & Apollo Brown - "Prove Me Wrong" | http://youtube.com/watch?v=DW0QFi971Cg
@grimen
grimen / .bowerrc
Last active December 19, 2015 10:39
HTML5/S3/Grunt/Make/Pow project setup.
{
"directory": "app/components"
}
@grimen
grimen / SubArray.js
Last active December 17, 2015 10:29 — forked from xk/SubArray.js
// 20111028 [email protected]
// How to subclass Array
// In reply to https://gist.github.com/1100841/9c959db9314338a09c0f288c2c0ca5553816e400
function subArray () {
var nu = Array.prototype.slice.apply(arguments); // @grimen: Fixed to support `new Array(666)` (=> `[666]` instead of Array of size 666)
nu.__proto__= subArray.prototype;
return nu;
}
/*
* jQuery Mobile v1.3.0
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
@grimen
grimen / jquery-iframe_3rdparty_cookie
Created March 18, 2013 19:17
Old hack for supporting 3rd party cookies in Safari using an iframe.
VENDOR="/tmp/vendor";
NGINX_TITLE='Nginx/OpenResty'
NGINX_NAME='ngx_openresty'
NGINX_TAG='v1.2.4.7'
NGINX_URL='git://github.com/agentzh/ngx_openresty.git'
NGINX_PATH="$VENDOR/$NGINX_NAME-$NGINX_TAG"
OPENRESTY_VERSION="1.2.6.6"
#! /usr/bin/env sh
PCRE_VERSION="8.21"
cd /tmp
wget "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VERSION.tar.gz"
tar -xzvf "pcre-$PCRE_VERSION.tar.gz"
cd "pcre-$PCRE_VERSION"
./configure --enable-jit
make -j2
@grimen
grimen / spinner.css
Created February 12, 2013 19:58
SVG: Spinner
#loading {
background-image: url(./spinner.svg);
width: 20px;
height: 20px;
background-size: contain;
position: relative;
margin: 20px auto;
opacity: .7;
-webkit-animation:rotate 1.5s infinite steps(12);
-moz-animation:rotate 1.5s infinite steps(12);