Skip to content

Instantly share code, notes, and snippets.

View zeroeth's full-sized avatar
🤖
🐱 🤖 🐱 🤖

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
@zeroeth
zeroeth / mousetrail.pde
Created February 7, 2015 17:58
mouse trail
float[] x = new float[50];
float[] y = new float[50];
void setup() {
size(450,450);
smooth();
noStroke();
// reset all the numbers in both arrays
for(int i = 0; i<x.length; i++) {
@zeroeth
zeroeth / animation.pde
Created February 7, 2015 15:52
animation
import de.looksgood.ani.*;
float x, y, diameter;
AniSequence sequence;
void setup() {
size(512,512);
smooth();
noStroke();
textAlign(CENTER);
@zeroeth
zeroeth / soundy.pde
Created February 7, 2015 15:40
Sound movement
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioPlayer jingle;
FFT fftLin;
PFont font;
void setup()
function onOpen() {
var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}];
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.addMenu("Fitness Diaries", menuEntries);
}
function createDocFromSheet(){
var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id
var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries
// get the data from an individual user
@zeroeth
zeroeth / dimensions.pde
Created January 31, 2015 19:33
threedimensional
PShape starcubes;
float delta = 0.0;
void setup() {
size(640, 360, P3D);
starcubes = loadShape("scificubes.obj");
}
void draw() {
background(102);
@zeroeth
zeroeth / inkyspin.pde
Last active August 29, 2015 14:14
inkscape spinner
/**
* Ignore Styles.
* Illustration by George Brower.
*
* Shapes are loaded with style information that tells them how
* to draw (the color, stroke weight, etc.) The disableStyle()
* method of PShape turns off this information. The enableStyle()
* method turns it back on.
*/
@zeroeth
zeroeth / random.pde
Created January 31, 2015 16:47
random cubes
int square_top_x = 10;
int square_top_y = 20;
int square_bot_x = 100;
int square_bot_y = 200;
void setup()
{
size(500, 500);
}
@zeroeth
zeroeth / loop.pde
Created January 24, 2015 20:20
processing loop
float circle_size = 50;
void setup()
{
size(600, 600);
}
void draw()
{
background(0);
@zeroeth
zeroeth / game_winner.html
Created January 15, 2015 21:45
Aris minigame score keeper
<html>
<head>
<script>
var ARIS = {};
</script>
</head>
<body>
<div>
<button id="giveWinToken">You Win X!</button>
</div>
@zeroeth
zeroeth / Moria.tmTheme
Created January 11, 2015 23:08
sublime/textmate moria theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <key>name</key>
 <string>Monokai</string>
 <key>settings</key>
 <array>
  <dict>
   <key>settings</key>