Skip to content

Instantly share code, notes, and snippets.

Avatar

Kimberly Lin madbunnykim

View GitHub Profile
@madbunnykim
madbunnykim / Arduino
Last active Oct 25, 2017
Running pumpkin
View Arduino
#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
View Artists_2.json
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,
View herbsnspices.json
{
"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",
View paw.js
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;
}
View index.html
<!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>
View Paw
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;
}
View Mini aquarium rework
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() {
View Rainbow polka dots
let bright0;
let bright1;
let bright2;
let bright3;
let bright4;
let bright5;
let bright6;
let bright7;
let bright8;
let bright9;
View neonaquarium
let x;
let y;
let r = 116;
let g = 187;
let b = 277;
function setup() {
createCanvas(400, 400)
}
View miniaquarium.txt
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);