Skip to content

Instantly share code, notes, and snippets.

Oren Shoham oshoham

Block or report user

Report or block oshoham

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oshoham
oshoham / notes.md
Created Feb 4, 2016
Notes for 2/4/2016 RC Presentation
View notes.md

Visualizations in the Browser

Technologies Used

  • Web Audio API (native browser audio playback & low-level DSP tools)
  • SoundCloud public API
  • RxJS (reactive functional programming JS library) (used for displaying SoundCloud search results)
  • Canvas (native browser 2D drawing)

How It Works

@oshoham
oshoham / index.html
Last active Feb 16, 2016
U.S. Prison Population by State from 1978-2014
View index.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>U.S. Prison Population From 1978-2014</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href="main.css" rel="stylesheet" type="text/css">
<script src="https://d3js.org/d3.v3.min.js" defer></script>
@oshoham
oshoham / .block
Last active Mar 13, 2016
People Killed By The Police In The U.S. In 2015
View .block
license: mit
View keybase.md

Keybase proof

I hereby claim:

  • I am oshoham on github.
  • I am osh (https://keybase.io/osh) on keybase.
  • I have a public key whose fingerprint is D032 13BF 189A A36B BA35 711E 0E66 D9A1 476C 69E6

To claim this, I am signing this object:

View index.html
<!DOCTYPE html>
<html>
<head>
<title>jQuery Fun House Starter Code</title>
</head>
<body>
<div class="section">
<h1>What is your name?
<input id="name">
</h1>
View index.html
<!DOCTYPE html>
<html>
<head>
<title>jQuery Fun House Solution Code</title>
</head>
<body>
<div class="section">
<h1>What is your name?
<input id="name">
</h1>
View maskTest.pde
PGraphics img1;
PGraphics img2;
void setup() {
size(400, 400);
background(255);
img1 = createGraphics(400, 400);
img2 = createGraphics(400, 400);
@oshoham
oshoham / laser_harp.ino
Last active Oct 25, 2017 — forked from boysonhudson/laser_harp.ino
Laser Harp Arduino Code
View laser_harp.ino
/*
* Laser Harp MIDI Controller
*
* Authors: Wei-Luen (Alan) Peng and Oren Shoham
*/
// hex to MIDI note reference: https://www.wavosaur.com/download/midi-note-hex.php
// scale: B5, A5, G5, F5, E5, D5, C5
const int notes[7] = {0x5F, 0x5D, 0x5B, 0x59, 0x58, 0x56, 0x54};
const int startingInputPin = 3;
@oshoham
oshoham / lunar-lander.ino
Last active Jan 31, 2018
Lunar Lander Controller
View lunar-lander.ino
/*
* Author: Oren Shoham
* Written on 1/30/2018 for Tom Igoe's Tangible Interaction Workshop class at NYU ITP.
*
* References:
* https://github.com/PaulStoffregen/Encoder/blob/master/examples/Basic/Basic.pde
* https://www.arduino.cc/en/Tutorial/KeyboardAndMouseControl
*/
#include <Encoder.h>
@oshoham
oshoham / midi-controller.ino
Created Feb 14, 2018
Tangible Interaction Workshop MIDI Controller
View midi-controller.ino
#include <Adafruit_LIS3DH.h>
#define USE_ACCELEROMETER true
const int sliderPins[7] = { A1, A2, A3, A6, A7, A8, A9 };
const int sliderThreshold = 20;
const int sliderNoiseThreshold = 30;
const int rotarySwitchPins[4] = { 5, 4, 3, 2 };
const int toggleSwitchPins[2] = { 7, 8 };
You can’t perform that action at this time.