Skip to content

Instantly share code, notes, and snippets.

Ranjit Bhatnagar moonmilk

Block or report user

Report or block moonmilk

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
@moonmilk
moonmilk / diatonic mold.stl
Created Apr 9, 2019
diatonic pineapple mold
View diatonic mold.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moonmilk
moonmilk / optic mold.stl
Created Apr 9, 2019
pentatonic pineapple draft
View optic mold.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moonmilk
moonmilk / lobsterbowl.ino
Created Feb 20, 2017
instrument-a-day 2017, day 18: lobster bowl
View lobsterbowl.ino
// Lobster Bowl arduino due touch glitch thing
// readCapacitivePin
// Arduino Due version, from http://playground.arduino.cc/Code/CapacitiveSensor
// Input: Arduino pin number
// Output: A number, from 0 to 17 expressing
// how much capacitance is on the pin
// When you touch the pin, or whatever you have
// attached to it, the number will get higher
uint8_t readCapacitivePin(int pinToMeasure) {
@moonmilk
moonmilk / ofxMSAWord2Vec playground.ipynb
Last active Jul 5, 2016
messing around with ofxMSAWord2Vec
View ofxMSAWord2Vec playground.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moonmilk
moonmilk / whisperer2.ino
Created Feb 18, 2016
instrument-a-day 17: teensy whisperer
View whisperer2.ino
// whisperer2 for teensy 3.1/3.2 with teensy audio board
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveform waveform1; //xy=253,396
@moonmilk
moonmilk / vowel formants.maxpat
Created Feb 13, 2016
instrument-a-day 2016, day 12: vowel explorer
View vowel formants.maxpat
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 10,
"architecture" : "x86"
}
,
@moonmilk
moonmilk / bottle_imp_1.ino
Created Feb 8, 2016
instrument-a-day 2016, day 7: Bottle Imp 1
View bottle_imp_1.ino
// teensy 3.1 in USB MIDI mode
const int MIDI_CHANNEL = 1;
int NUM_THINGIES = 4;
const int TOUCH_PINS[] = {0, 1, 15, 16};
const int CONTROLLERS[] = {20, 21, 22, 23};
float touch[] = {0,0,0,0};
@moonmilk
moonmilk / newpentagon.svg
Created Aug 11, 2015
new tiling pentagon
View newpentagon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moonmilk
moonmilk / dotcollection.json
Created May 31, 2015
graphics in tracery
View dotcollection.json
{
"origin": [
"<svg width=\"400\" height=\"200\">#pattern#</svg>"
],
"circlecolor": [
"pink",
"cyan",
"yellow",
"orange",
"gray",
@moonmilk
moonmilk / babyforsale.py
Created Apr 14, 2015
For sale: baby Synset('clothing.n.01'), never worn.
View babyforsale.py
from nltk.corpus import wordnet as wn
clothing = wn.synset('clothing.n.01')
hypo = lambda s: s.hyponyms()
clothes = list(clothing.closure(hypo))
for clo in clothes:
for n in [a.name() for a in clo.lemmas()]:
if not "_" in n:
You can’t perform that action at this time.