Skip to content

Instantly share code, notes, and snippets.

View atduskgreg's full-sized avatar

Greg Borenstein atduskgreg

View GitHub Profile
Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig

The Rose Camera

The Rose Camera is a high resolution, ultra wide color-spectrum, lens-less digital imaging system, developed by Eric Rosenthal of New York University. The camera's development was funded by the Defense Advanced Research Projects Agency (DARPA) and originally introduced in military applications. It entered widespread commercial use in the late 2030s and is now one of the most common form of digital cameras in the world.

Traditional Digital Photography and Understanding of the Human Vision System

Since the advent of quantum mechanics in 1925, physicists have known about the Wave-Particle duality of light. However, for the first 50 years of the history of digital photography, engineers treated light solely as a stream of particles to be captured.

In this era, digital cameras used CCD and CMOS sensors to "catch" light particle by particle. These sensors converted the impact of light particles into a voltage that could be measured by electronic circuits as the value of each pixel. In ord

const ApeECS = require('ape-ecs');
class Position extends ApeECS.Component {
constructor(){
super();
this.x = 0;
this.y = 0;
}
init(values)
@atduskgreg
atduskgreg / face_tracker_processing.pde
Created January 12, 2012 21:26
Accessing FaceTracker OSC messages in Processing
import oscP5.*;
OscP5 oscP5;
PVector posePosition;
boolean found;
float eyeLeftHeight;
float eyeRightHeight;
float mouthHeight;
float mouthWidth;
float nostrilHeight;
@atduskgreg
atduskgreg / PWindow.pde
Last active November 15, 2023 13:29
Example of creating a Processing sketch with multiple windows (works in Processing 3.0)
class PWindow extends PApplet {
PWindow() {
super();
PApplet.runSketch(new String[] {this.getClass().getSimpleName()}, this);
}
void settings() {
size(500, 200);
}

Interactive Machine Learning

Taught by Brad Knox at the MIT Media Lab in 2014. Course website. Lecture and visiting speaker notes.

{"origin":"#preserveMethod.capitalize# #entree# that I #cookingAction#, covered with #foodAddition#, and made into a #foodFormat#.","preserveMethod":["cold","frozen","canned","leftover"],"entree":["chicken","mapo tofu","lasagna","peanut butter and jelly sandwich","udon","mac and cheese"],"cookingAction":["microwaved","left out over night","cooked in a pan","boiled"],"foodAddition":["siracha","ketchup","spicy mayo","nutritional yeast","melted cheese"],"foodFormat":["taco","sandwich","pasta","bowl"]}
@atduskgreg
atduskgreg / arduino_firmware.cpp
Created November 8, 2011 20:52
send multiple values over serial from Processing to Arduino
int currentValue = 0;
int values[] = {0,0};
void setup() {
Serial.begin(9600);
}
void loop() {
if(Serial.available()){
@atduskgreg
atduskgreg / GABWordnet.h
Created August 4, 2014 00:08
Thin wrapper around wordnet sql database for getting definitions of words on iOS. Add the wordnet.sqlite3 file to your project and the sqlite3 dylib to the build phases. I downloaded the sqlite db from here: https://code.google.com/p/synonym/downloads
//
// GABWordnic.h
// WordnicSqliteTest
//
// Created by Greg Borenstein on 8/3/14.
// Copyright (c) 2014 Greg Borenstein. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <sqlite3.h>