Skip to content

Instantly share code, notes, and snippets.

@morrifeldman
morrifeldman / gist:8460339
Created January 16, 2014 18:21
Left Hand "In the Summertime"
(ns summertime.core)
(use 'clojure.repl)
(use 'overtone.live)
;; (demo (sin-osc))
(use 'overtone.inst.piano)
;; (piano 60)
@morrifeldman
morrifeldman / gist:5235726
Created March 25, 2013 08:38
mit-scheme failed to build on 10.8.2 with CLT (not xcode)
Last login: Mon Mar 25 10:20:29 on ttys001
~$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install foo
Error: No available formula for foo
~$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install mit-scheme
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://ftpmirror.gnu.org/mit-scheme/stable.pkg/9.1.1/mit-scheme-c-9.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/mit-scheme-9.1.1.tar.gz
tar xf /Library/Caches/Homebrew/mit-scheme-9.1.1.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
@morrifeldman
morrifeldman / marshal_wrap.rb
Created November 11, 2012 22:35
Simple rake extension to wrap a block with automatic loading and unloading of marshalled variables
require 'rake/clean'
module MWsubs
extend self
def add_ext_sub(filename_in, ext_in)
filename = filename_in.to_s
# remove the period from the ext if it is there
ext = (ext_in[/^\./]) ? ext_in[1..-1] : ext_in
# add the extension unless it is alerady there