This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sonic Pi (http://sonic-pi.net/) | |
# Basic Quantized Drum Beat | |
# Globals | |
$bpm = 128 | |
$bps = $bpm / 60 | |
$qunatize = 1.0 / 32.0 | |
# Helper step sequencing method | |
def sync_steps(steps, quantize = 1.0 / 4.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
# Fix homebrew taps and simlinks | |
brewDir=$(brew --prefix) | |
taps=($(brew tap)) #Save off the current taps into an array | |
# Untap everything | |
for i in "${taps[@]}" | |
do | |
printf "Untapping: $i\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; In the base quil folder | |
; lein deps | |
; lein compile | |
; lein repl | |
(def files (map clojure.java.io/as-relative-path (rest (file-seq (java.io.File. "./examples/gen_art"))))) ; Get all the gen_art examples | |
(def files ((fn [x] (println (first x)) (load-file (first x)) (rest x)) files)) ; Load and run the next example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function server() { | |
local port="${1:-8000}" | |
open "http://localhost:${port}/" | |
python -m SimpleHTTPServer "$port" | |
} |