Skip to content

Instantly share code, notes, and snippets.

@jessherzog
jessherzog / geoAR.js
Created October 31, 2016 16:51
disassociative walk geo object sample
var Objs = {
loaded: false,
rotating: false,
init: function initFn() {
this.createModelAtLocation();
},
createModelAtLocation: function createModelAtLocationFn() {
@jessherzog
jessherzog / ofApp.cpp
Created April 29, 2016 03:43
main Eclipse story code
#include "ofApp.h"
int i = 0;
int _i = 0;
int alpha;
float vidSpeed;
// resolution of live video
int vidX = 320;
int vidY = 240;
@jessherzog
jessherzog / ofx_firstTry
Created April 18, 2016 19:36
ofx portrait - eyes
#include "ofApp.h"
#include <string>
// initialize the objects we will use
ofTrueTypeFont myfont;
ofFbo fbo;
ofVideoPlayer mov0;
ofSerial serial;
ofImage img0;
ofImage img1;
@jessherzog
jessherzog / LED_strips.ino
Created April 15, 2016 07:38
8 functions with button WITH debounce
#include <SPI.h>
#include <Adafruit_DotStar.h>
#include "FastLED.h"
#define NUM_LEDS 15
#define BRIGHTNESS 96
#define FRAMES_PER_SECOND 120
#define DATA_PIN 5
#define CLOCK_PIN 6
@jessherzog
jessherzog / shade.glsl
Created April 1, 2016 03:28
ATTEMPT 1: combine 4 shaders (brcosa, pixelate, channels, threshold)
#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif
#define PROCESSING_TEXTURE_SHADER
varying vec4 vertTexCoord;
uniform sampler2D texture;
uniform float brightness;
@jessherzog
jessherzog / main_proc.ino
Created April 1, 2016 01:28
STUDIO/LAB MIDTERM
// get the serial lib :
import processing.serial.*;
// give port a variable :
Serial port;
// get the webcam lib :
import processing.video.*;
// give webcam a variable :
@jessherzog
jessherzog / ard_main.ino
Created April 1, 2016 01:08
STUDIO/LAB MIDTERM
// lcd
//#include <SPI.h>
//#include <Adafruit_SSD1306.h>
//#include <Adafruit_GFX.h>
//#include <Wire.h>
//#define OLED_RESET 4
//#define SSD1306_128_64
//Adafruit_SSD1306 display(OLED_RESET);
//#define OLED_address 0x3c
@jessherzog
jessherzog / main_processing
Created March 28, 2016 20:10
visual repair
// get the serial lib :
import processing.serial.*;
// give port a variable :
Serial port;
// get the webcam lib :
import processing.video.*;
// give webcam a variable :
@jessherzog
jessherzog / main_ard.ino
Created March 28, 2016 20:09
visual repair
// global stuff
unsigned long cap1, cap2, piezo, temp, axisX, axisY, axisZ;
// lcd
//#include <SPI.h>
//#include <Adafruit_SSD1306.h>
//#include <Adafruit_GFX.h>
//#include <Wire.h>
//#define OLED_RESET 4
//#define SSD1306_128_64
/*
Draws a 3d rotating cube on the freetronics OLED screen.
Original code was found at http://forum.freetronics.com/viewtopic.php?f=37&t=5495
Thanks to Adafruit at http://www.adafruit.com for the great display and sensor libraries
*/
#include <SPI.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_GFX.h>
#include <Wire.h>