This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import esprima | |
import requests | |
from bs4 import BeautifulSoup | |
from urllib.parse import urljoin | |
class BookOfBlaseballVisitor(esprima.NodeVisitor): | |
def find_book_function_node(self, node): | |
self._ancestors = [] | |
self._book_function_node = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "blaseball-book-scraper", | |
"version": "1.0.0", | |
"description": "", | |
"main": "parse_blaseball_book.js", | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"acorn": "^7.4.0", | |
"acorn-walk": "^7.2.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RecorderProcessor(options) { | |
AudioWorkletProcessor.call(this); | |
var processorOptions = options.processorOptions || {}; | |
this.numInputChannels = processorOptions.numInputChannels || 2; | |
this.recording = false; | |
this.clear(); | |
this.port.onmessage = function(event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PGraphics img1; | |
PGraphics img2; | |
void setup() { | |
size(400, 400); | |
background(255); | |
img1 = createGraphics(400, 400); | |
img2 = createGraphics(400, 400); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
NewerOlder