This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.dom.min.js"></script> | |
<!-- Load TensorFlow.js --> | |
<script src="https://unpkg.com/@tensorflow/tfjs"></script> | |
<!-- Load Posenet --> | |
<script src="https://unpkg.com/@tensorflow-models/posenet"></script> | |
<script src="sketch.js"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.dom.min.js"></script> | |
<!-- Load TensorFlow.js --> | |
<script src="https://unpkg.com/@tensorflow/tfjs"></script> | |
<!-- Load Posenet --> | |
<script src="https://unpkg.com/@tensorflow-models/posenet"></script> | |
<script src="sketch.js"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Keyboard.h> | |
#include <Mouse.h> | |
const int Y_PIN = A0; | |
const int LEFT_PIN = 2; | |
const int RIGHT_PIN = 3; | |
const int START_PIN = 6; | |
void setup() { | |
// put your setup code here, to run once: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SerialPort = require('serialport'); | |
const request = require('request'); | |
const myKey = '12312314'; | |
const moment = require('moment') | |
const Readline = SerialPort.parsers.Readline; | |
const thirtyMinutesInSeconds = 60 * 60 | |
const SUNRISE = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PShader frag; | |
int frames = 33; | |
float frameTheta = 2. * PI / frames; | |
int h = 520; | |
int w = 520; | |
float base = 2 * tan(frameTheta / 2.)* h; | |
int renderSize = ceil(base); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Adafruit Arduino - Lesson 4. 8 LEDs and a Shift Register | |
*/ | |
int latchPin = 5; | |
int clockPin = 6; | |
int dataPin = 4; | |
byte leds[2]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define LOWER_READ 143 | |
#define UPPER_READ 940 | |
#define INTERVAL_PIN A0 | |
#define REDPIN 5 | |
#define GREENPIN 6 | |
#define BLUEPIN 9 | |
#define ON_PERCENTAGE .1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x3a6aF697e89b8c1caFf43d685ebc2b20b8B65F86 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var logReader = { | |
getLogEntries : function(logDate, callback){ | |
if(!(logDate instanceof Date)) | |
throw new Error('date must be of type Date'); | |
var logFileName = logDate.toDateString() + '.log'; | |
fs.readFile(logFileName, function(err, data){ |