Skip to content

Instantly share code, notes, and snippets.

View jordanorelli's full-sized avatar
🎴

Jordan Orelli jordanorelli

🎴
View GitHub Profile
import gifAnimation.*;
GifMaker gifExport;
int loopFrames = 60;
PVector maskOrigin;
Float maskWidth = 250.0;
float orbitWidth = 100.0;
void setup() {
gifExport = new GifMaker(this, "export.gif", 30);
import themidibus.*;
MidiBus myBus;
int y = 0;
int vel = 0;
void setup() {
size(1024, 768);
background(0);
myBus = new MidiBus(this, 0, -1);
@jordanorelli
jordanorelli / main.pde
Created July 15, 2013 03:32
quadratic koch island in Processing, as in The Algorithmic Beauty of Plants.
void setup() {
size(500, 500);
smooth();
background(255);
stroke(0);
strokeWeight(1);
HashMap productions = new HashMap();
productions.put('F', "F-F+F+FF-F-F+F");
String axiom = "F-F-F-F";
@jordanorelli
jordanorelli / rpn.go
Last active December 20, 2015 16:59
stack-based rpn accumulator
package main
import (
"bufio"
"errors"
"fmt"
"os"
"strconv"
"strings"
)
@jordanorelli
jordanorelli / print_midi.ck
Created September 14, 2013 17:12
midi printing util
// number of the device to open (see: chuck --probe)
0 => int device;
// the midi event
MidiIn min;
// the message for retrieving data
MidiMsg msg;
// open the device
if(!min.open(device)) {
@kavu
kavu / example.go
Created September 28, 2013 10:01
Minimal Golang + Cocoa application using CGO. Build with `CC=clang go build`
package main
/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa
#import <Cocoa/Cocoa.h>
int
StartApp(void) {
[NSAutoreleasePool new];
float rectSize = 30;
int numRects = 40;
float outerRadius = 120;
int aframes = 140;
boolean SAVE_FRAMES = true;
void setup() {
size(500, 500);
}
@jordanorelli
jordanorelli / README.md
Last active April 3, 2021 15:31
Dot product

not sure what this is, I think I was trying to figure out what a dot product is

global tempo
set tempo to 120
--establish quarter note delay time
global q
set q to 60 / tempo
--establish eighth note delay time
global e
set e to q / 2
# sleepy flower girl
(◡ ‿ ◡ ✿)
# y u no
ლ(ಠ益ಠლ)
# smiling breasts
(^人^)
# flipping tables