Skip to content

Instantly share code, notes, and snippets.

View scottgwald's full-sized avatar

Scott W. Greenwald scottgwald

View GitHub Profile
@scottgwald
scottgwald / .screenrc
Last active August 29, 2015 14:04
screen setup
defscrollback 10000
startup_message off
escape ^\\
.DS_Store
@scottgwald
scottgwald / manifest.json
Last active August 29, 2015 14:03
[wearscript] myo simple
{
"name":"Myo Simple",
"scripts": {"android:phone": "phone.html"}
}
@scottgwald
scottgwald / glass.html
Created June 28, 2014 02:16
[wearscript] take two v1
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!-- You can include external scripts here like so... -->
<!--<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" bgcolor="#000">
<canvas id="canvas" width="640" height="360" style="display:block"></canvas>
<script>
@scottgwald
scottgwald / glass.html
Last active August 29, 2015 14:02
[wearscript] Media Player Destroy Bug
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
var tree;
function main() {
if (WS.scriptVersion(1)) return;
tree = new WS.Cards();
tree.add("Hello", "World");
@scottgwald
scottgwald / glass.html
Created June 6, 2014 18:31
[wearscript] Media example
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function main() {
if (WS.scriptVersion(1)) return;
WS.cameraVideo(function (x) {
setTimeout(function () {
WS.createMedia('file://' + x, false)
}, 5000);
});
@scottgwald
scottgwald / glass.html
Last active August 29, 2015 14:01 — forked from kevbtu/glass.html
[wearscript] kevin app beta
<html style="width:100%; height:100%; overflow:hidden">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.parsecdn.com/js/parse-1.2.18.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>
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!-- You can include external scripts here like so... -->
<!--<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>
// Constants
@scottgwald
scottgwald / glass.html
Created May 17, 2014 01:40 — forked from bwhite/glass.html
[wearscript] AR tag reader, new syntax
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0" bgcolor="#000">
<script>
function main() {
if (WS.scriptVersion(1)) return;
WS.picarusARTagFactory(function (model) {
model.processStream(function (tags) {
WS.log(JSON.stringify(tags));
var out = 'Tag';
for (var i = 0; i < tags.length; i++)
@scottgwald
scottgwald / glass.html
Last active November 14, 2015 03:58
[wearscript] minimal sensors
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!-- You can include external scripts here like so... -->
<!--<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" bgcolor="#000">
<canvas id="canvas" width="640" height="360" style="display:block"></canvas>
<script>