Skip to content

Instantly share code, notes, and snippets.

View drart's full-sized avatar

Adam Tindale drart

View GitHub Profile
// by dw @ bees & bombs
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
// by dave @ bees & bombs
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
// code by dave whyte >:)
// beesandbombs.tumblr.com
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
// by Dave @ Bees & Bombs >:)
int[][] result;
float time;
void setup() {
setup_();
result = new int[width*height][3];
}
@colinbdclark
colinbdclark / minimal-declarative-flocking-midi.js
Created June 14, 2014 01:55
Minimal declarative MIDI example
window.midiBand = flock.band({
components: {
synth: {
type: "flock.synth",
options: {
synthDef: {
id: "carrier",
ugen: "flock.ugen.sinOsc",
freq: 440,
mul: {
@colinbdclark
colinbdclark / gist:9179042
Last active August 29, 2015 13:56
Wiring Flocking up to Web Audio nodes
flock.init();
var as = flock.enviro.shared.audioStrategy;
// Create the new gain node and set some parameters on it.
var gainNode = as.context.createGain();
gainNode.gain.setValueAtTime(0.0, as.context.currentTime);
as.insertOutputNode(gainNode);
@colinbdclark
colinbdclark / gist:8580936
Created January 23, 2014 15:49
An example of playing two audio buffers at the same time, one in each channel.
var synth = flock.synth({
synthDef: [
{
ugen: "flock.ugen.playBuffer",
buffer: {
id: "chord",
url: "../../shared/audio/hillier-first-chord.wav"
}
},
{
@gmccreight
gmccreight / master.vim
Last active September 23, 2023 08:41
A script that gives you a playground for mastering vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@bradcrawford
bradcrawford / feedly_export_saved_for_later
Last active February 26, 2024 07:07
Simple script that exports a users "Saved For Later" list out of Feedly as a JSON string
// Simple script that exports a users "Saved For Later" list out of Feedly
// as a JSON string.
//
// This was intended for use in the Google Chrome's "Inspector" tool so your
// mileage may vary if used in other contexts.
//
// Format of JSON is as follows:
// [
// {
// title: "Title",
@C4Examples
C4Examples / C4Workspace.m
Created February 21, 2013 22:16
C4Control shadowPath
//
// C4WorkSpace.m
// Examples
//
// Created by Greg Debicki.
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace {