Skip to content

Instantly share code, notes, and snippets.

View lovettbarron's full-sized avatar
🕶️
at night

Andrew Lovett-Barron lovettbarron

🕶️
at night
View GitHub Profile
@lovettbarron
lovettbarron / Multipoint Hyperlapse
Last active January 4, 2016 02:09
Step through hyperlapse (decently high res). Left forward, right backwards.
<!DOCTYPE html>
<html>
<head>
<title>Simple Example</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false" type="text/javascript"></script>
<script src="js/canvas-toBlob.js"></script>
<script src="js/FileSaver.js"></script>
<script src="js/three.min.js"></script>
@lovettbarron
lovettbarron / firesiteSerial.ino
Last active December 11, 2015 10:08
Having a hell of a time with this arduino sketch. It's for this installation: http://www.andrewlb.com/2013/01/firesite-debug-view/ I think I'm getting there though. It is currently not quite working, but kind of working. I had misunderstood how the LPD8806 chip worked, switched over to only using the PWM pins. I'm going to have to split the sign…
#include "LPD8806.h"
#include "SPI.h"
// Constants
const int NUMLIGHTS = 6; // Number of lights per arm
const int NUMARMS = 3; // Number of arms per light
const int LEDPERARM = 20; // Number of lights
const int serialPin = 52;
const int testPin = 53;
bool connected;
@lovettbarron
lovettbarron / package.json
Created December 16, 2012 21:37
Was having difficulty compiling johnny-five on Rpi, the bellow seems to have fixed it though by declaring the dependency versions explicitly. When compiling node-gyp on OSX, make sure to have xcode + command line tools installed.
{
"name" : "theProject"
,"preferGlobal": true
, "author":"Relay Studio"
, "client":"theClient"
, "version": "0.0.1"
, "private": true
, "dependencies": {
"express": "3.0"
, "jade" : ">= 0.0.1"