Skip to content

Instantly share code, notes, and snippets.

@timothyclemans
timothyclemans / glass.html
Created February 24, 2014 19:31
[wearscript]
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
@timothyclemans
timothyclemans / gist:9257112
Created February 27, 2014 19:18
Install ADB one liner on Mac
curl -L https://github.com/OpenShades/wearscript/raw/dev/thirdparty/adb/osx/adb > adb && chmod 755 adb
@timothyclemans
timothyclemans / glass.html
Created February 28, 2014 16:46
[wearscript] Hashtag tweets
<!-- hashtag tweets -->
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden;">
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
body {
background:#000;
color:#FFF;
font-family:Roboto;
font-weight:100;
@timothyclemans
timothyclemans / glass.html
Created February 28, 2014 23:43
[wearscript]
<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://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>-->
<style>
/* recover from old-browser styling */
.oldbl {display: block !important;}
.oldin {display: inline !important;}
@timothyclemans
timothyclemans / gist:9284867
Last active August 29, 2015 13:56
windows installer
import os
import re
import urllib
user_profile = os.environ['USERPROFILE']
urls = ['https://github.com/OpenShades/wearscript/raw/dev/thirdparty/adb/windows/AdbWinApi.dll', 'https://github.com/OpenShades/wearscript/raw/dev/thirdparty/adb/windows/AdbWinUsbApi.dll', 'https://github.com/OpenShades/wearscript/raw/dev/thirdparty/adb/windows/adb.exe']
for url in urls:
print os.path.join(user_profile, re.search('(?P<filename>\w+\.[de][lx][le])', url).groups()[0])
urllib.urlretrieve(url, os.path.join(user_profile, re.search('(?P<filename>\w+\.[de][lx][le])', url).groups()[0]))
@timothyclemans
timothyclemans / glass.html
Created March 2, 2014 17:48
[wearscript]
<!DOCTYPE html>
<html>
<head>
<!--
noVNC example: simple example using default UI
Copyright (C) 2012 Joel Martin
Copyright (C) 2013 Samuel Mannehed for Cendio AB
noVNC is licensed under the MPL 2.0 (see LICENSE.txt)
This file is licensed under the 2-Clause BSD license (see LICENSE.txt).
@timothyclemans
timothyclemans / glass.html
Created March 3, 2014 09:58
[wearscript]
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<!--<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>-->
<style>
/* recover from old-browser styling */
.oldbl {display: block !important;}
@timothyclemans
timothyclemans / glass.html
Created March 5, 2014 01:23
[wearscript] Checklists for glass
<!-- checklistsforglass.com checklist creation -->
<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://raw.github.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>
/* recover from old-browser styling */
.oldbl {display: block !important;}
@timothyclemans
timothyclemans / glass.html
Created March 8, 2014 19:50
[wearscript]
<!-- checklistsforglass.com -->
<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://raw.github.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'>
<!--<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>-->
<style>
/* recover from old-browser styling */
@timothyclemans
timothyclemans / glass.html
Created March 22, 2014 17:56
[wearscript]
<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">
Single wink = QR<br/>
Double wink = Camera
<script>