Skip to content

Instantly share code, notes, and snippets.

View danmackinlay's full-sized avatar

dan mackinlay danmackinlay

View GitHub Profile
@danmackinlay
danmackinlay / ArrawyWarp.sc.patch
Created October 8, 2011 06:37
autoGui ArrayWarp vs PresetInterpolator
--- quarks/autogui/Classes/ArrayWarp.sc 2011-09-30 21:01:01.000000000 +1000
+++ /Volumes/dan/src/sc/mmExtensions/interpolator/ArrayWarp.sc 2011-10-08 14:29:22.000000000 +1100
@@ -1,3 +1,3 @@
-// by Martin Marier
+// Copyright 2010 Martin Marier
ArrayWarp : LinearWarp {
@@ -36,5 +36,5 @@
w.addFlowLayout( 10@10, 5@2 );
ms = MultiSliderView(w, 330@330)
# a messy hack written by Edd Dumbill. http://twitter.com/edd
# You may need to rerun this script if you hit a Twitter Error because you
# use up API rate limiting. That's why we pickle the results, so we can resume
# where we left off.
# get the twitter module using 'easy_install twitter'
from twitter.api import Twitter, TwitterError
from twitter.oauth import OAuth
$ brew install kdelibs
==> Downloading http://download.librdf.org/source/redland-1.0.12.tar.gz
File already downloaded and cached to /Users/dan/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/redland/1.0.12 --disable-debug --disable-dependency-tracking --w
==> make install
Making install in libltdl
/bin/sh /private/tmp/homebrew-redland-1.0.12-1dGP/redland-1.0.12/libltdl/config/install-sh -d .
cp ./argz_.h argz.h-t
mv argz.h-t argz.h
make install-am
$ brew install berkeley-db
==> Downloading http://download.oracle.com/berkeley-db/db-5.1.19.tar.gz
File already downloaded and cached to /Users/dan/Library/Caches/Homebrew
==> ../dist/configure --disable-debug --prefix=/usr/local/Cellar/berkeley-db/5.1.19 --mandir=/usr/local/Cel
==> make install
./libtool --mode=compile /usr/bin/cc -c -I. -I../src -w -pipe -O3 ../src/mutex/mut_tas.c
libtool: compile: /usr/bin/cc -c -I. -I../src -w -pipe -O3 ../src/mutex/mut_tas.c -fno-common -DPIC -o .libs/mut_tas.o
libtool: compile: /usr/bin/cc -c -I. -I../src -w -pipe -O3 ../src/mutex/mut_tas.c -o mut_tas.o >/dev/null 2>&1
./libtool --mode=compile /usr/bin/cc -c -I. -I../src -w -pipe -O3 ../src/btree/bt_compare.c
libtool: compile: /usr/bin/cc -c -I. -I../src -w -pipe -O3 ../src/btree/bt_compare.c -fno-common -DPIC -o .libs/bt_compare.o
@danmackinlay
danmackinlay / detraktor.sh
Created May 19, 2010 02:17
removes overblown traktor comments from vorbis tags that mess with iTunes
#removes overblow traktor comments from vorbis tags that mess with iTunes
vorbiscomment "$1" |grep -v "^TRAKTOR4=" |vorbiscomment --write --commentfile - "$1"
-- invoke with $ osascript ensure_mate.scpt /path/to/project
-- or create a wrapper script that looks like this:
-- #!/bin/sh
-- osascript ~/bin/ensure_mate.scpt $@ &
-- Created 2010 Dan MacKinlay and hereby released into the public domain
on run (wantedPath)
set wantedPathFound to false
global wantedDoc
tell application "TextMate"
# !/bin/env/python
# or depending how you want to think about it, inverse frequencies. Cahnge these to get different interleaving
A_FREQUENCY = 3
B_FREQUENCY = 5
#two nice friendly looking sequences of the form 'a99','a98','a97'...
#(reverse order so we get the correct order with pop())
a = map( lambda x: 'a'+str(x), range(100,0,-1))
b = map( lambda x: 'b'+str(x), range(100,0,-1))
@danmackinlay
danmackinlay / index.html
Created October 22, 2009 07:30
netcultures walk through of beautifying google's horrible javascript spreadsheet mapper
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.3");
</script>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAArYqxP8iD7yfYTxrLYQmwehT2yXp_ZAY8_ufC3CFXhHIE1NvwkxT6VZV_KCSABr9_i4BGpMSXan7nig"
type="text/javascript">
</script>
<script type="text/javascript">
//<![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>NetCultures blog test</title>
<style type="text/css" media="screen">
#header h1 {
color: pink;
}
#header {
@danmackinlay
danmackinlay / friendfeed_private_syndicator.py
Created September 3, 2009 05:37
syndicates private friend-feed groups with read-only public feeds
# −*− coding: UTF−8 −*−
"""
quick/dirty private feed exposer
http://friendfeed.com/api/documentation
http://www.dalkescientific.com/Python/PyRSS2Gen.html
http://code.google.com/p/httplib2/
http://labix.org/python-dateutil
"""
import settings
from settings import FF_BASE_URL, FF_API_BASE_URL, FF_REMOTE_KEY, FF_FEED, FF_NICKNAME, FF_CONSUMER_SECRET, OUTPUT_CACHE_DIR, INPUT_CACHE_DIR