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 / 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"
@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 / 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 / gist:11013707
Created April 17, 2014 21:54
"Dynamic" object.
$(this.el).find('.imagebuffer').each(function(key,val) {
// console.log($(val));
var r = function() { return $(val)[0].getBoundingClientRect();
};
var i = $(val).attr('src');
_this.sections.push({
rect: r,
img: i
});

Keybase proof

I hereby claim:

  • I am readywater on github.
  • I am andrewlb (https://keybase.io/andrewlb) on keybase.
  • I have a public key whose fingerprint is 3BA0 44C6 D3F4 AF64 6A42 1013 2A84 27DC C797 BFF4

To claim this, I am signing this object:

@lovettbarron
lovettbarron / ExportKindle.js
Created October 29, 2017 21:47 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@lovettbarron
lovettbarron / README.md
Created February 25, 2019 13:41 — forked from twolfson/README.md
Terms of use and privacy policy evaluation
{"version":1,"resource":"file:///Users/albkeel/src/blog/2021-08-08_peripherals.md","entries":[{"id":"QNjG.md","source":"searchReplace.source","timestamp":1669600334646},{"id":"RQJu.md","source":"searchReplace.source","timestamp":1669642932664}]}
@lovettbarron
lovettbarron / audible-goodreads-import.py
Last active March 23, 2024 22:56
Audible Goodreads Importer
# So this is a somewhat manual but not nearly as manual as it could be process.
# First, follow the instructions here: https://www.themodernnomad.com/audible-statistics-extractor/
# Depending on how many pages, copy and paste the results into Excel
# (it will auto format, though you will need to remove the header)
# Before running
# Install the required libraries: pandas and isbntools
# Modify the read_excel argument to point at your file.
# Then point the to_csv argument to wherever you want to export to.

Thanks for testing StupdFits!

I'll be adding you as a tester on both Instagram (sync photos) and Facebook (login option, though not required).

Facebook

If you use Facebook, you can accept the facebook tester invite: https://developers.facebook.com/requests/

If you aren't using facebook, login using the Email method instead.