Skip to content

Instantly share code, notes, and snippets.

View drGrove's full-sized avatar
😎

Danny Grove drGrove

😎
View GitHub Profile
@drGrove
drGrove / glass.html
Created March 21, 2014 23:38
[wearscript] A Test
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>-->
</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) {
// Changes canvas color with head rotation
@drGrove
drGrove / glass.html
Created March 21, 2014 04:51 — forked from bwhite/glass.html
[wearscript] Read which AR tag is in front of you
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0" bgcolor="#000">
<script>
function server() {
WS.cameraOn(1, 360, 640);
WS.dataLog(false, true, .15);
WS.subscribe('warptags', function (channel, tags) {
if (tags.length) {
WS.say(tags[0][0]);
}
@drGrove
drGrove / ccccc
Created March 21, 2014 03:25 — forked from bwhite/glass.html
[wearscript] AR Warp with circles
dssfdfs
@drGrove
drGrove / glass.html
Created March 21, 2014 03:22 — forked from bwhite/glass.html
[wearscript] AR Warp with circles
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<canvas id="offscreen" width="640" height="360" style="display:hidden"></canvas>
<script>
function drawCircle(x, y) {
var width = 640;
var height = 360;
var c = document.getElementById("offscreen");
var ctx = c.getContext("2d");
ctx.fillStyle = 'black'
@drGrove
drGrove / glass.html
Created March 20, 2014 20:15
[wearscript] sdfsdfdsf
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>-->
</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) {
// Changes canvas color with head rotation
@drGrove
drGrove / glass.html
Created March 20, 2014 19:49
[wearscript] sdfsdfdsf
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>-->
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<canvas id="canvas" width="640" height="360" style="display:block"></canvas>
<script>
WS.log('Welcome to WearScript');
WS.say('Welcome to WearScript');
@drGrove
drGrove / glass.html
Created March 19, 2014 18:10
[wearscript] djljlk
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>-->
</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) {
// Changes canvas color with head rotation
@drGrove
drGrove / ghhgf
Last active August 29, 2015 13:57
[wearscript] Welcome to Wearscript
jsklsj
@drGrove
drGrove / awesomeConfig
Created March 13, 2014 16:37
Capscr [awesome]
-- capture screen area
awful.key({ modkey, "Control" }, "p", function() awful.util.spawn(".bin/capscr") end)
@drGrove
drGrove / glass.html
Last active August 29, 2015 13:57
[wearscript] Wearscript is Awesome!
<html style="width:100%; height:100%; overflow:hidden" data-test>
<head>
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>-->
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<canvas id="canvas" width="640" height="360" style="display:block"></canvas>
<script>
WS.log('Welcome to WearScript');
WS.say('Wearscript is awesome');