Skip to content

Instantly share code, notes, and snippets.

@infoburp
infoburp / fft.js
Created August 4, 2012 00:28
javascript fft
//do fast fourier transform on audio input.
//with thanks to Jeffrey Clymer for allowing the use of this code
var screenx=512, screeny=200, offset=10, x;
var yr = new Array(512); yi = new Array(512);
var n=1024, g=10, p=2*Math.PI/n, g1, l, m, k, k1, k2, k3;
var y1, y2, j;
var dend = "px; position:absolute; top:1px; width:2px; height:2px; font-size=1; background-color:#0000ff\'></div>"
var fend = "px; position:absolute; top:1px; width:1px; height:2px; font-size=1; background-color:#0000ff\'></div>"
@infoburp
infoburp / d3.v2.js
Created August 22, 2012 17:40
simple d3 force example played with a bit
(function() {
if (!Date.now) Date.now = function() {
return +(new Date);
};
try {
document.createElement("div").style.setProperty("opacity", 0, "");
} catch (error) {
var d3_style_prototype = CSSStyleDeclaration.prototype, d3_style_setProperty = d3_style_prototype.setProperty;
d3_style_prototype.setProperty = function(name, value, priority) {
d3_style_setProperty.call(this, name, value + "", priority);
@infoburp
infoburp / .gitconfig
Created October 1, 2012 02:07 — forked from textarcana/git-log2json.sh
git log JSON format > d3? HTML5GOURCE?
[alias]
log-json = log --pretty=format:'\"%h\": {%n \"commit\": \"%H\",%n \"author\": \"%an <%ae>\",%n \"date\": \"%ad\",%n \"message\": \"%s\"%n}'
# setup environment for local install:
export WLD=$HOME/install
export LD_LIBRARY_PATH=$WLD/lib
export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/
export PATH=$WLD/bin:$PATH
export ACLOCAL_PATH=$WLD/share/aclocal
export ACLOCAL="aclocal -I $ACLOCAL_PATH"
mkdir -p $ACLOCAL_PATH
@infoburp
infoburp / README.md
Last active August 29, 2015 14:06 — forked from knutwalker/README.md

Installation

  • requires python 2.7 (maybe python 3.3+ will work too, didn't tested it)

Put git2neo.py somewhere in your $PATH and chmod +x it.

Usage

@infoburp
infoburp / wmiirc
Last active August 29, 2015 14:06 — forked from benkaiser/wmiirc
#!/bin/dash -f
# Configure wmii
wmiiscript=wmiirc # For wmii.sh
. wmii.sh
# Configuration Variables
MODKEY=Mod4
UP=k
DOWN=j
@infoburp
infoburp / index.html
Last active August 29, 2015 14:07 — forked from steren/index.html
<div id="insertTest"></div>
<script>
var wikipediaHTMLResult = function(data) {
var readData = $('<div>' + data.parse.text.* + '</div>');
// handle redirects
var redirect = readData.find('li:contains("REDIRECT") a').text();
if(redirect != '') {
callWikipediaAPI(redirect);
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
graeme@amy:~/textshots$ fig up
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
root@1ac41ea069be:/# bash: path: No such file or directory
sudo fig up
[sudo] password for graeme:
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
graeme@amy:~/textshots$ fig up
Recreating textshots_mongodb_1...
Recreating textshots_grunt_1...
Recreating textshots_redis_1...
Creating textshots_web_1...
graeme@amy:~/textshots$ DEBUG=* node bin/www
express:router:route new / +0ms
express:router:layer new / +3ms
express:router:route get / +0ms
express:router:layer new / +0ms
express:router:route new /login +1ms
express:router:layer new /login +0ms
express:router:route get /login +0ms
express:router:layer new / +0ms
express:router:route new undefined +0ms