Skip to content

Instantly share code, notes, and snippets.

View jordanfbrown's full-sized avatar

Jordan Brown jordanfbrown

  • Homebase
  • Oakland, CA
View GitHub Profile
@jordanfbrown
jordanfbrown / postgres.rb
Created June 18, 2013 17:40
Postgres 9.0.5 Homebrew recipe, includes --without-ossp-uuid option. To install: brew install postgres --without-ossp-uuid
require 'formula'
class Postgresql < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.postgresql.org/pub/source/v9.0.5/postgresql-9.0.5.tar.bz2'
md5 '86816eb8a8513532957b96045abdfef9'
depends_on 'readline'
depends_on 'libxml2' if MacOS.version == :leopard
depends_on 'ossp-uuid' unless build.include? 'without-ossp-uuid'
@jordanfbrown
jordanfbrown / soundcloud.js
Created December 10, 2011 00:25
Bind spacebar to play/pause on soundcloud
(function($) {
var $currentPlayButton = $();
$(document).bind('keydown', function(e) {
if(e.which === 32) {
if(!$(document.activeElement).is('input')) {
e.preventDefault();
if($currentPlayButton.length > 0) {
$currentPlayButton.click();
}