Skip to content

Instantly share code, notes, and snippets.

@neatonk
neatonk / did.txt
Created March 2, 2022 20:00
Verifying my GitHub account on Self.ID
did:3:kjzl6cwe1jw146ggft5exdujtcqilt3o1ejle8e842018z36s0tx8ph27xhgi5l

Keybase proof

I hereby claim:

  • I am neatonk on github.
  • I am neatonk (https://keybase.io/neatonk) on keybase.
  • I have a public key ASBLzvg_H_36vBZJZ_089NAMhunRkzGHKV7RSkcby8soTQo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 13Z3j4N2aKJmWg3yazTPAWTyVaAD1tbE9f https://explorer.blockstack.org/address/13Z3j4N2aKJmWg3yazTPAWTyVaAD1tbE9f
@neatonk
neatonk / gist:3909411
Created October 18, 2012 01:45
ArrayMax Ugen metdadata for Overtone
;;; This is the metadata used to define the ArrayMax ugen spec.
{:name "ArrayMax",
:summary "detect the largest value (and its position) in an array of UGens",
:args
[{:name "array", :mode :append-sequence :doc "input ugens (channelArray)"}],
@neatonk
neatonk / gist:3843432
Created October 6, 2012 01:49
feh build failure on OSX 10.8.2-x86_64 with homebrew
$ cat ~/Library/Logs/Homebrew/feh/01.make
sed \
-e 's/\$VERSION\$/2.5/g' \
-e 's/\$DATE\$/'"$(date '+%B %d, %Y')"/g \
-e 's/\$MAN_CURL\$/enabled/' \
-e 's/\$MAN_DEBUG\$//' \
-e 's/\$MAN_EXIF\$/disabled/' \
-e 's/\$MAN_XINERAMA\$/enabled/' \
< feh-cam.pre > feh-cam.1
sed \
@neatonk
neatonk / gist:3119581
Created July 16, 2012 01:08
JVM Crash when running overtone/mini-beast w/ overtone 0.8.0-SNAPSHOT on Linux
$ cd mini-beast
$ lein run
Could not find artifact org.clojure:clojure:pom:1.+ in central (http://repo1.maven.org/maven2)
Could not find artifact org.clojure:clojure:pom:1.+ in clojars (https://clojars.org/repo/)
Could not find artifact org.clojure:clojure:pom:1.+ in stuartsierra-releases (http://stuartsierra.com/maven2)
Could not find artifact org.clojure:clojure:pom:1.+ in central (http://repo1.maven.org/maven2)
Could not find artifact org.clojure:clojure:pom:1.+ in clojars (https://clojars.org/repo/)
Could not find artifact org.clojure:clojure:pom:1.+ in stuartsierra-releases (http://stuartsierra.com/maven2)
--> Loading Overtone...
--> Booting internal SuperCollider server...
@neatonk
neatonk / overtone-hcb.clj
Created May 7, 2012 21:19
All new sampled piano in Overtone.
;; A simple musical example illustrating the use of gating to control the note length
;; of the updated sampled-piano available in overtone 0.7-dev.
(use 'overtone.live)
;; wait ...
;; if you already downloaded the piano samples, do this first.
;; you'll only to do this once. Adjust the path if needed.
(register-assets! :overtone.inst.sampled-piano/MISStereoPiano
"~/.overtone/assets/www.ericmhobbs.com-Blackhole-music-backup-MISStereoPiano.zip--1263714981/Piano/")
@neatonk
neatonk / overtone-at-lazyseq.clj
Created May 3, 2012 16:31
Using Overtone's at macro with lazy-seq's
;; Lazy-seq's generated within the body of Overtone's #'at macro, don't behave as expected.
;; Use dorun or doseq to force evaluation.
;; See: https://groups.google.com/forum/?fromgroups#!topic/overtone/U7k7iKfyT5I
;; Define a simple inst...
(definst piano [n 60]
(let [env (env-gen (perc) :action FREE)]
(* env (sin-osc (midicps n)))))