Skip to content

Instantly share code, notes, and snippets.

@timothyclemans
timothyclemans / glass.html
Created July 22, 2014 12:37
[wearscript] moverio complex starting point for moverio
<style>
body {
color:#FFF;
background:#000;
font-size:1.25em;
}
#main {
background:red;
}
#datetime {
@timothyclemans
timothyclemans / glass.html
Created July 5, 2014 03:37
[wearscript] moverio camera preview
<html style="width:100%; height:100%; overflow:hidden">
<style>
body {
margin:0;
}
</style>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<img width="960" height="540" id="image" />
<script>
@timothyclemans
timothyclemans / glass.html
Created July 5, 2014 03:05
[wearscript] Moverio starting point
<html style="width:100%; height:100%; overflow:hidden">
<head>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
# -*- coding: utf-8 -*-
# PyMedTermino
# Copyright (C) 2012-2013 Jean-Baptiste LAMY
# LIMICS (Laboratoire d'informatique médicale et d'ingénierie des connaissances en santé), UMR_S 1142
# University Paris 13, Sorbonne paris-Cité, Bobigny, France
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@timothyclemans
timothyclemans / glass.html
Created May 19, 2014 15:53
[wearscript] myo hotkeys
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<html style="width:100%; height:100%; overflow:hidden">
<style>
table {
font-size:50px;
}
</style>
<body style="width:100%; height:100%; overflow:hidden; margin:0; color:#FFF">
<h1>Myo Hot Keys 6 </h1>
@timothyclemans
timothyclemans / glass.html
Created May 1, 2014 18:50
[wearscript] myo
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0; color:#FFF">
Myo2
<script>
function server() {
WS.myoPair(WS.myoTrain);
WS.gestureCallback('onMyo', function (x) {
WS.say(x);
});
WS.sensorOn('myoOrientation', .15, function (data) {
@timothyclemans
timothyclemans / glass.html
Created April 28, 2014 04:15
[wearscript] facical
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0" bgcolor="#000">
<script type="text/javascript" src="http://yourjavascript.com/27943214444/ccv.js"></script>
<script type="text/javascript" src="http://yourjavascript.com/47473214320/face.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<p id="data" style="color: red; font-size: 30px; width: 100px"></p>
<canvas id="output"></canvas>
<script>
WS.log("starting");
image = document.createElement('img');
@timothyclemans
timothyclemans / glass.html
Created April 27, 2014 04:59
[wearscript] adding to timeline
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="https://rawgit.com/Glench/fuzzyset.js/master/lib/fuzzyset.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
body {
font-family:roboto;
font-weight:100;
import os
import os
import signal
import subprocess
import shlex
#!/usr/bin/env python
import signal
import sys
def signal_handler(signal, frame):
#os.killpg(pro.pid, signal.SIGTERM)
@timothyclemans
timothyclemans / start_dual_video_screen_recording.sh
Last active August 29, 2015 14:00
dual_video_screen_recording.sh
adb shell am start -a android.intent.action.VIEW -d com.glass.videoglass:// --ez startFromWS true
adb shell screenrecord /sdcard/VideoBlack/screen.mp4