Skip to content

Instantly share code, notes, and snippets.

View elliots's full-sized avatar

☃ Elliot Shepherd elliots

View GitHub Profile
### Keybase proof
I hereby claim:
* I am elliots on github.
* I am elliots (https://keybase.io/elliots) on keybase.
* I have a public key ASAflJScdluIftDdiLzLXqmfGmzfHeoS1bqvN_1cPSZAkAo
To claim this, I am signing this object:
@elliots
elliots / main.go
Created August 1, 2014 07:01
Reading bit masks in golang using reflection
package main
import (
"log"
"reflect"
"github.com/davecgh/go-spew/spew"
)
type MyImportantValues struct {
@elliots
elliots / test.js
Created July 22, 2014 07:16
Node.JS Wii U Pro Controller and Wiimote events
'use strict';
/*
* This handles Wii U Pro Controllers and Wiimotes, but doesn't yet detect which it is =)
* `npm install node-hid pakkit`
*/
var HID = require('node-hid');
var pakkit = require('pakkit');
@elliots
elliots / options.js
Last active December 27, 2015 15:29 — forked from jmanoto/options.js
Shell command widget
return {
"name": "Shell Command",
"deviceMap": [{ "deviceType": "shell" }]
}
@elliots
elliots / options.js
Last active December 27, 2015 08:39 — forked from jmanoto/options.js
// Forked default widget to show live json DA.
return {
"name": "Default Widget",
"deviceMap": [
{ minimum: "1", maximum:"1" }
]
}
@elliots
elliots / options.js
Last active December 21, 2015 22:18 — forked from bacall213/options.js
return {
"name": "Bandwidth In/Out",
"deviceMap": [
{ "deviceId": [530,531,532,533], "minimum": 1, "maximum": 1},// Incoming
{ "deviceId": [540,541,542,543], "minimum": 1, "maximum": 1} // Outgoing
],
"forceDeviceMapGroup": true
}
@elliots
elliots / options.js
Last active December 21, 2015 22:18 — forked from bacall213/options.js
Based on bcall's excellent work...
return {
"name": "Bandwidth In/Out",
"deviceMap": [
{ "deviceId": [530,531,532,533], "minimum": 1, "maximum": 1},// Incoming
{ "deviceId": [540,541,542,543], "minimum": 1, "maximum": 1} // Outgoing
],
"forceDeviceMapGroup": true
}
@elliots
elliots / options.js
Last active December 21, 2015 06:39 — forked from jmanoto/options.js
return {
"name": "Lock Screen",
"deviceMap": [{ "deviceType": "lock-screen" }]
}
@elliots
elliots / options.js
Last active December 21, 2015 06:39 — forked from jmanoto/options.js
return {
"name": "Text-to-speech",
"deviceMap": [{ "deviceType": "speech" }]
}
@elliots
elliots / options.js
Last active December 21, 2015 06:39 — forked from jmanoto/options.js
return {
"name": "Open URL",
"deviceMap": [{ "deviceType": "openurl" }]
}