Skip to content

Instantly share code, notes, and snippets.

View jweather's full-sized avatar

Jeremy Weatherford jweather

View GitHub Profile
@jweather
jweather / gist:200c7925a38b08215b8f
Created March 23, 2015 18:27
Sonic Pi: untitled composition
# based on https://vimeo.com/50061269 by Andrew Sorensen
use_bpm 90
use_synth :dsaw
loops = [0, 0, 0, 0, 0]
define :pat do |notes, amps, time, count, rel, loop|
with_fx :reverb do
count.times do |i|
play notes[i], amp: loops[loop]*rrand(amps[i]-0.05, amps[i]+0.05), release: rel
@jweather
jweather / gist:b0d2870f1f280dce5a70
Created April 6, 2015 02:19
Sonic Pi: untitled composition refactored
# based on https://vimeo.com/50061269 by Andrew Sorensen
# refactored and clarified
use_bpm 90
use_synth :dsaw
# five loops, each has a volume from 0 to 1
volumes = [0, 0, 0, 0, 0]
# play a pattern of <notes> with <amps>, with <time> between notes
# use loop index <loop> for the note volumes
*** orig/ext/rugged/extconf.rb Thu Aug 6 05:27:24 2015
--- ext/rugged/extconf.rb Thu Aug 6 05:23:51 2015
*************** else
*** 65,67 ****
Dir.chdir("build") do
! sys("cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Unix Makefiles\"")
sys(MAKE)
--- 65,67 ----
Dir.chdir("build") do
! sys("cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo -G \"Unix Makefiles\" -DCMAKE_INSTALL_PREFIX=C:/ -DWINHTTP=OFF")
diff --git a/app/server/vendor/ffi-1.9.10/ext/ffi_c/libffi/Makefile.in b/app/server/vendor/ffi-1.9.10/ext/ffi_c/libffi/Makefile.in
index cbe1589..3a268f1 100755
--- a/app/server/vendor/ffi-1.9.10/ext/ffi_c/libffi/Makefile.in
+++ b/app/server/vendor/ffi-1.9.10/ext/ffi_c/libffi/Makefile.in
@@ -218,7 +218,7 @@ DVIS = doc/libffi.dvi
PDFS = doc/libffi.pdf
PSS = doc/libffi.ps
HTMLS = doc/libffi.html
-TEXINFOS = doc/libffi.texi
+TEXINFOS =
diff --git a/app/server/vendor/interception/ext/extconf.rb b/app/server/vendor/interception/ext/extconf.rb
index 3d118d4..852848c 100755
--- a/app/server/vendor/interception/ext/extconf.rb
+++ b/app/server/vendor/interception/ext/extconf.rb
@@ -20,6 +20,7 @@ else
File.open("Makefile", "w") do |f|
f.write "install:\n\t:\n"
+ f.write "clean:\n\t:\n"
end
xA = ((Y[1]-Y[0])*(X[0]-X[2]) + (Y[2]-Y[0])*(X[1]-X[0]))/((X[0]-X[2])*(X[1]*X[1]-X[0]*X[0]) + (X[1]-X[0])*(X[2]*X[2]-X[0]*X[0]));
xB = ((Y[1] - Y[0]) - xA*(X[1]*X[1] - X[0]*X[0])) / (X[1]-X[0]);
xC = Y[0] - xA*X[0]*X[0] - xB*X[0];
#INTEGRATIONID,1,0x01EF51E7,7731KP
#INTEGRATIONID,1,0x01EF4C83,7730KP
#INTEGRATIONID,1,0x01EF4E5B,7728KP
#INTEGRATIONID,1,0x01EF4C89,7726KP
#INTEGRATIONID,1,0x01EF51E2,7724KP
#INTEGRATIONID,1,0x01EF51DC,7722KP
#INTEGRATIONID,1,0x01EF4C80,7720KP
#INTEGRATIONID,1,0x01EF51D7,7718KP
#INTEGRATIONID,1,0x01EF4C82,7716KP
#INTEGRATIONID,1,0x01EF51E0,7714KP
#INTEGRATIONID,1,01EF4C85,7736KP
#INTEGRATIONID,1,01EF4C7E,7738KP
#INTEGRATIONID,1,01EF4E55,7740KP
#INTEGRATIONID,1,01EF4E5D,7742KP
#INTEGRATIONID,1,01EF4E59,7744KP
#INTEGRATIONID,1,01EF51DF,7746KP
#INTEGRATIONID,1,01EF51E5,7748KP
#INTEGRATIONID,1,01EF51DA,7750KP
#INTEGRATIONID,1,01EF51DE,7752KP
#INTEGRATIONID,1,01EF4C87,7754KP
vlc -I --dummy-quiet screen:// --screen-fps=3 :sout=#transcode{vcodec=MJPG,venc=ffmpeg{qmin=0,qmax=10},vb=800,width=1920,height=1080,acodec=none}:http{mux=mpjpeg,dst=:8088} :sout-keep