Skip to content

Instantly share code, notes, and snippets.

View scottgwald's full-sized avatar

Scott W. Greenwald scottgwald

View GitHub Profile
@scottgwald
scottgwald / cpu.js
Created April 17, 2014 01:48 — forked from bwhite/cpu.js
/*
JSNES, based on Jamie Sanders' vNES
Copyright (C) 2010 Ben Firshman
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@scottgwald
scottgwald / glass.html
Last active August 29, 2015 13:59
[wearscript] Picaboo
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<img id="theImage" src="" width=640 height=360>
<script>
var lightThreshold = 25;
@scottgwald
scottgwald / glass.html
Last active August 29, 2015 14:00
[wearscript] picaboo step 2
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<img id="theImage" src="" width=640 height=360>
<script>
var lightThreshold = 25;
@scottgwald
scottgwald / glass.html
Created April 17, 2014 22:05
[wearscript] asdf
<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>
function server() {
@scottgwald
scottgwald / glass.html
Last active August 29, 2015 14:00
[wearscript] photoCallbackTest
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<img id="theImage" src="" width=640 height=360>
<script>
var lightThreshold = 25;
@scottgwald
scottgwald / glass.html
Last active August 29, 2015 14:00
[wearscript] popdeals
<html style="width:100%; height:100%; overflow:hidden">
<head>
<style type="text/css">
body {
background: url("http://web.mit.edu/birkanu/www/popdeals-logo.png");
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
}
@scottgwald
scottgwald / gist:11028412
Created April 18, 2014 06:59
[wearscript] deals that switch data
<html style="width:100%; height:100%; overflow:hidden">
<head>
<style type="text/css">
body {
background: url("http://web.mit.edu/birkanu/www/popdeals-logo.png");
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
}
@scottgwald
scottgwald / glass.html
Created April 20, 2014 07:37
[wearscript] remote picture taking
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<img id="theImage" src="" width=640 height=360>
<script>
var lightThreshold = 25;
@scottgwald
scottgwald / glass.html
Created April 22, 2014 04:58
[wearscript] myo training
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<img id="theImage" src="" width=640 height=360>
<script>
var lightThreshold = 25;
@scottgwald
scottgwald / glass.html
Created April 22, 2014 05:52
[wearscript] control
<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>
function server() {