To create a new project run:
npx https://gist.github.com/brysonian/0a5a29b76cd58b983fb75abbe90e0b2c {PROJECT_NAME}
yarn
To run a dev server:
yarn start
| int tempo = 250; // just the delay in milliseconds at the end of loop | |
| int tracks = 3; | |
| int trackPins[] = { | |
| 12, 11, 10 | |
| }; | |
| int measure = 4; | |
| int sequences[][4] = { | |
| { 1, 0, 1, 0 }, | |
| { 1, 0, 0, 0 }, |
| import processing.serial.*; | |
| class Plotter | |
| { | |
| Serial port; | |
| int paperWidth; | |
| boolean automap = false; | |
| Plotter(PApplet p, int _paperWidth) { | |
| this(p); |
| const int BUTTON_PIN = 9; | |
| const int LED_PIN = 13; | |
| const int LED2_PIN = 10; | |
| int state = 0; | |
| int lastVal = 0; | |
| int ledState = LOW; | |
| int led2State = LOW; |
| import { | |
| rect, | |
| fill, | |
| } from './p5'; | |
| export default class Thing { | |
| x = 0; | |
| y = 0; | |
| speed = 0; |
| #define NOTE_B0 31 | |
| #define NOTE_C1 33 | |
| #define NOTE_CS1 35 | |
| #define NOTE_D1 37 | |
| #define NOTE_DS1 39 | |
| #define NOTE_E1 41 | |
| #define NOTE_F1 44 | |
| #define NOTE_FS1 46 | |
| #define NOTE_G1 49 | |
| #define NOTE_GS1 52 |
| const int BUTTON_PIN = 9; | |
| const int LED_PIN = 13; | |
| int state = 0; | |
| int oldVal = 0; | |
| int val = 0; | |
| void setup() { | |
| pinMode(LED_PIN, OUTPUT); | |
| pinMode(BUTTON_PIN, INPUT_PULLUP); |
To create a new project run:
npx https://gist.github.com/brysonian/0a5a29b76cd58b983fb75abbe90e0b2c {PROJECT_NAME}
yarn
To run a dev server:
yarn start
| <ApiConnector id={id} get={`${API_BASE}/news`}> | |
| { | |
| (data, onSave, onDelete) => ( | |
| <Fiore> | |
| <Form className="post-form full-width" onSave={onSave} onDelete={onDelete}> | |
| <Group className="form-wrapper"> | |
| <Line label="Title" content={data.title} /> | |
| <Line label="Year" content={data.year} /> | |
| <Line label="Link" content={data.link} placeholder="http://" formatter={httpify} /> | |
| </Group> |
| class Sketch { | |
| _fillColor = [0, 0, 0, 255]; | |
| _width = 200; | |
| _height = 200; | |
| setup() {} | |
| draw() {} | |
| createCanvas = (width, height) => { |