This file contains 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 colors(i) { | |
pad.notifyChangeColor(Math.floor(Math.random()*32)); | |
setTimeout(colors, i); | |
} |
This file contains 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
myClass = "sdfigasdfisdf"; | |
function getStyle() { | |
return 'letter-spacing: 2px; float: left;-webkit-transform: rotate(' + Math.floor(Math.random()*360) + 'deg);'; | |
} | |
function setStyle(ele) { | |
if(typeof ele == "object") { | |
ele.style['letter-spacing'] = '2px'; | |
ele.style['float'] = 'left'; | |
ele.style['-webkit-transform'] = 'rotate(' + Math.floor(Math.random()*360) + 'deg)'; |
This file contains 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
# requires ffmpeg, mpgtx | |
import sys, os, os.path, datetime | |
import numpy | |
from scipy.io.wavfile import read | |
# adjust this! | |
save_for_plot = False | |
volume_threshold = 250 |
This file contains 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 | |
# https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#manual-compilation | |
set -e | |
# get source | |
rm -rf graph-tool-source | |
git clone https://git.skewed.de/count0/graph-tool.git graph-tool-source | |
cd graph-tool-source |
This file contains 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
set -eu | |
#https://github.com/igraph/python-igraph/issues/157 | |
#https://github.com/Homebrew/homebrew-core/blob/master/Formula/igraph.rb | |
#https://github.com/gephi/gephi/wiki/GraphStreaming#Server_Module | |
wd="tmp" | |
rm -rf "$wd" && mkdir "$wd" | |
cd "$wd" |
This file contains 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 | |
set -euo pipefail | |
# (Loosely) based on https://gist.github.com/mbreese/b0630195e57874c87ef3611d059d1bc2 | |
# clean up | |
rm -rf bin _build _install | |