Skip to content

Instantly share code, notes, and snippets.

View madbunnykim's full-sized avatar

Kimberly Lin madbunnykim

  • New York, New York
View GitHub Profile
@madbunnykim
madbunnykim / Arduino
Last active October 25, 2017 07:02
Running pumpkin
#include "ESP8266WiFi.h"
// WiFi parameters to be configured
//const char* ssid = "RZ2Q8";
//const char* password = "9G9XP2ZBLDYHFQH2";
int photocellPin = 0;
int photocellValue = 0;
int motorPin = 12; //GI012
@madbunnykim
madbunnykim / Artists_2.json
Created October 24, 2017 13:12
MoMA Artists API
This file has been truncated, but you can view the full file.
{
"ConstituentID": 1,
"DisplayName": "Robert Arneson",
"ArtistBio": "American, 1930–1992",
"Nationality": "American",
"Gender": "Male",
"BeginDate": 1930,
"EndDate": 1992,
"Wiki QID": null,
"ULAN": null
@madbunnykim
madbunnykim / herbsnspices.json
Created October 24, 2017 13:10
Herbs and Spices
{
"description": "A list of herbs and spices, and mixtures of the two.",
"herbs": [
"Angelica",
"Basil",
"Holy Basil",
"Thai Basil",
"Bay leaf",
"Indian Bay leaf",
"Boldo",
@madbunnykim
madbunnykim / paw.js
Created October 18, 2017 14:36
Gimme food
class Paw {
constructor(x, y, xspeed, yspeed) {
this.x = x;
this.y = y;
this.xspeed = xspeed;
this.yspeed = yspeed;
this.touch=false;
this.bad=false;
}
@madbunnykim
madbunnykim / index.html
Last active October 16, 2017 22:48
Snap a pic
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
@madbunnykim
madbunnykim / Paw
Last active October 10, 2017 04:53
Bad Cat
class Paw {
constructor(x, y, xspeed, yspeed) {
this.x = x;
this.y = y;
this.xspeed = xspeed;
this.yspeed = yspeed;
this.touch=false;
this.bad=false;
}
let bubbles = [];
let fishcolor = [236, 136, 173];
function Bubble() {
this.x = random(0, width);
this.y = random(height, 0);
this.i = random(0, width);
this.j = random(height, 0);
this.display = function() {
@madbunnykim
madbunnykim / Rainbow polka dots
Created September 25, 2017 22:02
Rainbow polka dots
let bright0;
let bright1;
let bright2;
let bright3;
let bright4;
let bright5;
let bright6;
let bright7;
let bright8;
let bright9;
let x;
let y;
let r = 116;
let g = 187;
let b = 277;
function setup() {
createCanvas(400, 400)
}
@madbunnykim
madbunnykim / miniaquarium.txt
Last active September 10, 2017 20:47
Mini Aquarium
function setup() {
createCanvas(400, 400);
background(116, 187, 227);
}
function draw() {
fill(55, 143, 80);
noStroke();
triangle(0, 400, 10, 330, 20, 400);
triangle(20, 400, 30, 330, 40, 400);