Skip to content

Instantly share code, notes, and snippets.

View rhema's full-sized avatar

Rhema Linder rhema

View GitHub Profile
@fnando
fnando / dev.conf
Created July 23, 2011 09:00
Nginx configuration for SSH tunnel
upstream tunnel {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name dev.codeplane.com br.dev.codeplane.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
@despens
despens / geo-torrent-checksums.pl
Created April 2, 2012 12:50
Automatic completion of geocities.archiveteam.torrent
#!/usr/bin/perl
our $VERSION = 1.00;
=pod
This script compares checksums of local files belonging to the Archive Team's
Geocities Torrent with checksums published on archive.org. It can generate
shell scripts that complete an aborted torrent download by getting
missing/broken parts from archive.org
@dapurv5
dapurv5 / SpMatrixMult.java
Created May 18, 2013 02:29
Sparse Matrix Multiplication in Map Reduce
/**
* Copyright (c) 2013 Apurv Verma
*/
package org.anahata.hadoop.illustrations;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.anahata.commons.hadoop.io.IntInt;
@pwalsh
pwalsh / pyo on Mac OS X
Last active April 24, 2016 05:23
A short gist explaining how to compile pyo - the powerful Audio/DSP library for Python, on Mac OS X. The instructions are specifically for installing pyo with a brewed Python install - not with Mac OS X system Python.
# using brew installed Python
brew install portaudio portmidi libsndfile liblo jack
brew link portaudio portmidi libsndfile liblo
cd ~/Sites/tmp
svn checkout http://pyo.googlecode.com/svn/trunk/ pyo-read-only
@rcmiller
rcmiller / gdoc2latex.py
Last active December 19, 2015 12:59
This gist has been superseded by a repo: https://github.com/uid/gdoc-downloader
// see new code at https://github.com/uid/gdoc-downloader
@pwalsh
pwalsh / install-python-pyo-on-raspberry-pi.md
Last active September 4, 2023 20:48
Install Python PYO on Raspberry Pi (Raspian Debian Wheezy)

How to install Python PYO on Raspberry Pi (Raspian Debian Wheezy)

An old version of PYO is installable via apt-get on Raspian. But, we want the latest, don't we...

Dependencies

sudo apt-get install python-dev libjack-jackd2-dev libportmidi-dev portaudio19-dev liblo-dev libsndfile-dev python-dev python-tk python-imaging-tk python-wxgtk2.8
@twasink
twasink / HadoopMain.java
Created February 4, 2014 22:27
Example Hadoop Job that reads a cache file loaded from S3
// Based on http://pragmaticintegrator.wordpress.com/2013/08/16/writing-a-hadoop-mapreduce-task-in-java/
package net.twasink.hadoop;
import java.io.File;
import java.net.URI;
import org.apache.commons.io.FileUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
@amirkdv
amirkdv / lv_rsync_backup.sh
Last active October 31, 2023 07:58
Backup an LVM logical volume via Rsync
#!/bin/bash
# Backup an entire LVM logical volume via a snapshot LV and rsync
[[ $( whoami ) != 'root' ]] && echo "sudo please" && exit 1
set -o errexit
set -o nounset
# LVM logical volume to backup
lv=book01
@kylemcdonald
kylemcdonald / _tsne.pdf
Last active February 22, 2024 22:13
Exploring antonyms with word2vec.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Tone.js

What is it?

Tone.js is a Web Audio library which wraps and (hopefully) simplifies some of the Web Audio API.

The focus of Tone is on making interactive music:

* Musical timing - `"4n"`, `"8n"`, `"1:4:2"`, `"2m + 4t"`
* Musical notation - `"C4"`, `"Db4"`, `440`, `"440hz"`