Skip to content

Instantly share code, notes, and snippets.

View redaphid's full-sized avatar
💭
Adrift, in an ocean of stars.

Aaron Herres redaphid

💭
Adrift, in an ocean of stars.
  • Loqwai
  • Drifting
View GitHub Profile
@redaphid
redaphid / particle.ino
Created October 6, 2016 07:15
octoblu-particle integration
// Define the Pin the Temperature sensor is on
int tempPin = A0;
// Create a variable that will store the temperature value
double temperature = 0.0;
double temperatureF = 0.0;
double lastTempF = 0.0;
String temperatureString = "";
void setup()
@redaphid
redaphid / gotta-do-it.md
Created June 22, 2016 22:07
Bluprinter stuff

Everything Store-related

  • Curation of Bluprints
  • Detail view of bluprint

Bluprinter

  • Styles eeeeverywhere
  • Create Bluprint
    • Name the Bluprint
  • Make required
@redaphid
redaphid / git-semver
Last active April 15, 2016 03:37
github semver extensions
version() {
VERSION=$(git tag --list | xargs semver -v | tail -n 1)
echo $VERSION
}
version
major() {
semver -i major $(git tag --list | xargs semver -v | tail -n 1)
}
@redaphid
redaphid / badinstance
Last active March 11, 2016 22:30
badinstance
flowId: 93534f2b-0b0b-4d65-a1e6-e8d278e73c8e
instanceId: c666e846-b139-4402-b645-eb76de0f07ad
flowId: e498fa3b-ef2c-466c-a4b9-8536d6c1524b
instanceId: 52fdb5e6-9330-4292-b333-5920dacc3ee3
flowId: d5f84846-aaf7-4427-bb5d-d2eaeae3d34d
instanceId: a5c62cfb-7c1b-4ea0-8566-22ef159fae3d
@redaphid
redaphid / dash button
Last active August 29, 2015 14:28
Dash button
#!/usr/bin/node
var request = require('request');
var arpListener = require('arp-listener')
var _ = require('lodash');
var throttledTrigger = _.throttle(trigger, 5000);
arpListener('wlan0', function(arpData) {
console.log(arpData.sender_ha);
if(arpData.sender_ha !== '80:37:73:f4:b7:fa') {
return;
@redaphid
redaphid / meshblu-rest-tentacle.ino
Created August 5, 2015 07:02
Arduino Yun Meshblu REST + Tentacle example
#include <Bridge.h>
#include <YunClient.h>
#include "tentacle-build.h"
#include <SoftwareSerial.h>
#define tentacleServer "tentacle.octoblu.com"
#define meshbluServer "meshblu.octoblu.com"
#define port 80
#include <Bridge.h>
#include <YunClient.h>
#include "tentacle-build.h"
IPAddress server(192,168,1,69);
#define port 8111
static const char uuid[] = "1335d63e-3494-45d7-9e0b-d08c42818c6d";
@redaphid
redaphid / configuration-example.json
Created July 21, 2015 23:35
The Tentacle Message Formats
{
"options": {
"port" : "/dev/tty.usbmodem14110000.1",
"broadcastPins" : true,
"broadcastInterval": 2500,
"pins": [
{"action" : "digitalWrite", "number" : 7},
{"action" : "analogRead", "number" : 15}
]
}
@redaphid
redaphid / Cat-facts
Created November 12, 2014 18:10
Flow-to-flow communication
{
"flowId": "dd4e0f21-5000-11e4-baa6-6f19a6abebaa",
"token": "0yr22bcs1iuul3dibn6zyntyw48wipb9",
"hash": "c86083c3",
"name": "Cat-Facts",
"nodes": [
{
"id": "e2613140-5000-11e4-adbf-91df5d5432ef",
"resourceType": "flow-node",
"output": 1,
@redaphid
redaphid / twitter-blink
Created November 5, 2014 22:01
Test flow for comparison nodes