I hereby claim:
- I am alanchrt on github.
- I am alanchrt (https://keybase.io/alanchrt) on keybase.
- I have a public key whose fingerprint is 0817 268C 001E DA3F C325 DF8A CDF1 536E CA70 A16C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var distancePoints = function(p1, p2) { | |
// Find the distance between two points | |
return Math.sqrt(Math.pow(p2[0] - p1[0], 2) + Math.pow(p2[1] - p1[1], 2)); | |
}; | |
var intersectCircles = function (c1, r1, c2, r2) { | |
// Find the points of intersection for two circles | |
// Based on: http://stackoverflow.com/a/3349134 | |
var d = distancePoints(c1, c2); | |
if (d > r1 + r2) // Circles do not overlap |
import json, serial, threading, time | |
import mindwave | |
headsets = [ | |
{ | |
'name': 'red', | |
'headset': mindwave.Headset('/dev/tty.MindWaveMobile-DevA', open_serial=False), | |
}, | |
{ | |
'name': 'green', |
headsets = [ | |
{ | |
'name': 'red', | |
'headset': mindwave.Headset('/dev/tty.MindWaveMobile-DevA', open_serial=False), | |
}, | |
{ | |
'name': 'green', | |
'headset': mindwave.Headset('/dev/tty.MindWaveMobile-DevA-1', open_serial=False), | |
}, | |
] |
<!doctype html> | |
<html> | |
<head> | |
<title>Reinventing Retail</title> | |
<style> | |
body { | |
font-family: Helvetica, Arial, sans-serif; | |
background: #000; | |
margin: 0; | |
overflow: hidden; |
/*****************************************************************************\ | |
* Batch Spreadsheet Geocoding Script * | |
* Author: Alan Christopher Thomas * | |
* http://alanchristopherthomas.com/ * | |
\*****************************************************************************/ | |
function onOpen() { | |
// Add the Geocode menu | |
SpreadsheetApp.getActiveSpreadsheet().addMenu("Geocoder", [{ | |
name: "Geocode addresses", |