Skip to content

Instantly share code, notes, and snippets.

View amonks's full-sized avatar
🐋
🐟🐠🐡

Andrew Monks amonks

🐋
🐟🐠🐡
View GitHub Profile
@amonks
amonks / cloud_my_library.rb
Last active September 25, 2015 18:08
upload an index of your iTunes library to the cloud whenever you add new music
# cloud_my_library.rb
cloudEmail = "EMAIL@EXAMPLE.COM"
cloudPassword = "PASSWORD"
$iTunesLibraryPath = "~/Music/iTunes"
# ######################
# #### INSTALLATION ####
# ######################
#
@amonks
amonks / iphone.ck
Created June 28, 2012 20:39
iphone alert sounds
fun void stairs(int inA, int inB, float step){
SinOsc a => dac;
inA => a.freq;
.1 => a.gain;
SinOsc b => dac;
inB => b.freq;
.1 => b.gain;
while(b.freq() < 500){

Belgian Man Official Contract

Introduction

This document contains multiple contracts, all used in various capacities by BMR. Each contract begins with a capital letter and a closing parenthese, eg. "A)".

Each contract is separate: signature of one contract does not in any way imply agreement to any other contract.

Various parts of this document use terms in [brackets]. Prior to the signature and use of these contracts, any term in [brackets] should be replaced with a specific entity, as situationally appropriate.

@amonks
amonks / a_generate.py
Last active December 29, 2015 00:59
super simple trigram markov jawn in nltk assumes you've installed nltk (http://nltk.org/install.html) and that ./data.txt is your corpus (mine is from http://www.gutenberg.org/cache/epub/76/pg76.txt)
from __future__ import division
import nltk, re, pprint
f = open('data.txt')
raw = f.read()
tokens = nltk.word_tokenize(raw)
text = nltk.Text(tokens)
print text.generate()
@amonks
amonks / launch script
Created January 21, 2014 16:15
Put this file in /etc/init.d/ and edit {THING-TO-LAUNCH} as appropriate. You can run `sudo update-rc.d {THIS-FILE'S-NAME} defaults` to `start` at boot and `stop` at shutdown.
#! /bin/sh
# /etc/init.d/{THING-TO-LAUNCH}
### BEGIN INIT INFO
# Provides: {THING-TO-LAUNCH}
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Simple script to start a program at boot
@amonks
amonks / screener-crash-report
Last active January 4, 2016 01:29
screener crash report; see also https://vimeo.com/84714314
Process: Screener [82385]
Path: /Applications/Screener.app/Contents/MacOS/Screener
Identifier: com.chordedconstructions.Screener
Version: 0.0.0 (0)
Code Type: X86-64 (Native)
Parent Process: launchd [185]
Responsible: Screener [82385]
User ID: 501
Date/Time: 2014-01-21 15:07:47.481 -0600

cool picture!

These are the things it can do:

It's a midi controller!

complete with 8 knobs; 8 buttons, and 4 switches. (I have yet to add +6 knobs and +6 buttons, +2 faders)

It's a wireless MIDI bridge!

this is my dream tattoo

my dream tatoo

i want it on the inside of my wrist kinda half on my hand half on my arm with the stem pointing down my hand

@amonks
amonks / respiration.md
Last active February 20, 2018 18:22
Some thoughts on Black Star's *Respiration*, thought by Andrew Monks

Some thoughts on Black Star's Respiration

The most recent version of this paper will probably always be available on Github at this link

Intro

Black Star's classic single Respiration deals with city life, both in New York, as told my Mos Def and Talib Kweli, and in Chicago, as told by Common. Like the other classics on …Are Black Star, Respiration was produced by Hi-Tek using a sample from The Fox, by Don Randi.

Context