Skip to content

Instantly share code, notes, and snippets.

float r = 100;
PVector p1, p2, p3, p4;
void setup() {
size(500, 500);
colorMode(HSB, 360, 100, 100);
noStroke();
fill(220,80,100);
p1 = new PVector(
cos(radians(0))*r,
tell application "Dropbox"
quit
end tell
delay 1
tell application "Finder"
activate
eject "HDD_1.5TB"
eject "time_machine"
#include <CircularLED.h>
CircularLED circularLED1(3, 2);
CircularLED circularLED2(5, 4);
//CircularLED circularLED;
unsigned int LED[24];
unsigned int LED_Nums[] = {1, 2, 3, 4, 6, 8, 12, 24};
int LED_Status = 0;
int LED_Num = LED_Nums[LED_Status];
int LED_rotator = 24 / LED_Num;
#include <SoftwareSerial.h>
#include <MP3Player_KT403A.h>
#include <stdio.h>
#include <SoftwareSerial.h>
#include <Ultrasonic.h>
#include <TM1637.h>
#define ROTARY_ANGLE_SENSOR A0
#define LED 5//the Grove - LED is connected to D3 of Arduino
#define NANA_SEG_CLK 7
#include <WaveHC.h>
#include <WaveUtil.h>
#define FSRPin 0 // Pin Num for FSR
#define HS1Pin 1 // Pin Num for HS1
#define HS2Pin 2 // Pin Num for HS2
#define PMPin 3 // Pin Num for PM
#define ledFSR 11 // Pin for LED detect FSR status
#include <WaveHC.h>
#include <WaveUtil.h>
#define FSRPin 0 // Pin Num for FSR
#define HS1Pin 1 // Pin Num for HS1
#define HS2Pin 2 // Pin Num for HS2
#define PMPin 3 // Pin Num for PM
#define ledFSR 11 // Pin for LED detect FSR status
#define ledHS1 12 // Pin for LED detect HS1 status
#include <WaveHC.h>
#include <WaveUtil.h>
#define FSRPin 0 // Pin Num for FSR
#define HS1Pin 1 // Pin Num for HS1
#define HS2Pin 2 // Pin Num for HS2
#define PMPin 3 // Pin Num for PM
#define ledFSR 11 // Pin for LED detect FSR status
#define ledHS1 12 // Pin for LED detect HS1 status
/*
* HELL_STAMP SOUND PLAY
*
*/
#include <WaveHC.h>
#include <WaveUtil.h>
// put pi in flash memory
const char sound_file[] PROGMEM = "12345789";
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts. Unlike style sheets however,
# each selector can only be declared once.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
float a = 250;
float b = 250;
void setup(){
size(500,500);
colorMode(HSB,360,100,100);
background(0,0,100);
noFill();
}
void draw(){