Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
require 'sinatra'
require 'sinatra/reloader' if development?
require 'haml'
require 'dm-core'
require 'dm-validations'
require 'dm-migrations'
require 'bluecloth'
helpers do
Blind - Hercules and Love Affair
Get Like Me - David Banner
Set Me Free - Phonat
Touch the Sky - Kanye West
I'll Be There - Gregor Salto, Afrojack
Snorlax Fuckin Owns
Do Ya Think I'm Sexy (Mightyfools Remix) - Rod Stewart
California Gurls (MSTRKRFT Remix) - Katy Perry
We Are Your Friends - Simian
Technologic - Daft Punk
@jkap
jkap / notify.rb
Created September 27, 2010 20:29
#!/usr/bin/env ruby
# This requires the mail gem
# To use, run './notify.rb "<your command>"'
# make sure to set it as executable first using 'chmod +x notify.rb'
# email jbklego{at}gmail{dot}com with issues.
require 'rubygems'
require 'mail'
share some shit!
jeopardize your political career!
the simple video sharer!
now with extra beta!
we <3 Rails Rumble!
100% free until it's not!
the real slim shady!
........................!
throw more dots!
version 3.14!
@jkap
jkap / xebra.txt
Last active September 24, 2015 08:37
(Cashduke shit, pre Derek, late 2008)
RX-1117
The New Tomorrow
Gone
In The Park
Quasimoto's Rebellion
(Cashduke Remixes, with Derek, early 2009)
Crank Dat Tetris Boy
Sexy Benny
Set 1:
2:10 Dance Yrself Clean (with "I'm Not In Love" by 10cc intro)
12:40 Drunk Girls
17:09 I Can Change
23:45 Time To Get Away
28:16 Get Innocuous!
35:18 Daft Punk Is Playing At My House
41:45 Too Much Love
46:53 All My Friends
55:30 Tired (with "Heart of the Sunrise" by Yes snippet)
/**
Returns the nesting level
-1 if not in a ul
0 if root
>0 if nested
*/
function detectNesting(selector, count) {
if(!count) { var count = -1; }
if ($(selector).parent().is("ul"))
{
@jkap
jkap / chef_solo_bootstrap.sh
Created June 4, 2012 23:26 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@jkap
jkap / chef_solo_bootstrap.sh
Created June 4, 2012 23:26 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev git-core
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz
tar -xvzf ruby-1.9.3-p194.tar.gz
cd ruby-1.9.3-p194/
./configure --prefix=/usr/local
make
make install
@jkap
jkap / gist:2901697
Created June 9, 2012 16:38
fsbext diff for homebrew
diff --git a/fsbext.c b/fsbext.c
index e643fca..4cbe027 100755
--- a/fsbext.c
+++ b/fsbext.c
@@ -1978,7 +1978,7 @@ void put_extension(u8 *fname, u8 *ext, int skip_known) {
experimental_extension_guessing(fname, oldext_buff, fname + strlen(fname));
if(oldext_buff[0]) {
strcpy(wavext + 1, ext);
- } else if(!stricmp(wavext + 1, ext)) {
+ } else if(!strcasecmp(wavext + 1, ext)) {