Skip to content

Instantly share code, notes, and snippets.

View colegleason's full-sized avatar

Cole Gleason colegleason

View GitHub Profile
@colegleason
colegleason / glass.html
Last active August 29, 2015 13:57
[wearscript] MYO Hue Tug of war
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script data-require="jquery" data-semver="2.0.3" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script>
var HUE_ID = 1;
var PLAYER_A = 1;
var PLAYER_B = 3;
var TARGET = 2;
@colegleason
colegleason / glass.html
Last active August 29, 2015 13:57 — forked from connerbrooks/glass.html
[wearscript] Pebble
<html style="width:100%; height:100%; overflow:hidden">
<head>
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<canvas id="canvas" width="640" height="360" style="display:block"></canvas>
<script>
function cb(data) {
WSRAW.log('x: ' + data['values'][0] + ' y: ' + data['values'][1] + ' z: ' + data['values'][2]);
WSRAW.pebbleSetBody('x: ' + data['values'][0] + ' y: '+ data['values'][1] + ' z: ' + data['values'][2], false);