Skip to content

Instantly share code, notes, and snippets.

View funkymonkeymonk's full-sized avatar

Will Weaver funkymonkeymonk

View GitHub Profile
live_loop :jazz_cymbal do
sample :drum_cymbal_open, sustain: 0.5, release: 0.1
sleep 0.5
sample :drum_cymbal_open, attack: 0.01, sustain: 0, release: 0.1
sleep 0.3
sample :drum_cymbal_open, attack: 0.01, sustain: 0, release: 0.1
sleep 0.2
end
live_loop :baseline do
@funkymonkeymonk
funkymonkeymonk / ear.sh
Created March 26, 2015 00:08
"echo and run" echo the argument to the shell, the run the command then wait for user input to continue. I use this to script my demos so I don't have to worry about typos when I'm presenting.
function ear {
clear
echo $1
$1
read -n 1 -s
}
@funkymonkeymonk
funkymonkeymonk / notify
Created February 26, 2015 19:17
A function for sending notifications from bash to the OSX notification center
notify() {
body=${1-'Demo notification\nsyntax: notify "title" "body"'}
title=${2-'Terminal notification'}
osascript -e "display notification \"${body//\"/\\\"}\" with title \"${title//\"/\\\"}\""
}