Skip to content

Instantly share code, notes, and snippets.

@timothyclemans
timothyclemans / glass.html
Created April 23, 2014 10:24
[wearscript] WearScriptOS
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<body style="background:#000; overflow:hidden; margin:0; color:#FFF; margin:40px; font-size:40px;">
<div id="main"></div>
<script>
// 1. Display "Tap the touchpad to login with your QR code."
// 2. Scan QR code
// 3. Get password
var user_id;
var checklist_id;
var device_type = 'glass';
function onGesture(name) {
WS.log('gesture: '+name);
if (name == 'TAP' || name == 'WINK') {
WS.log('tap');
advance();
} else if (name == 'TWO_TAP' || name == 'DOUBLE_BLINK') {
select();
@timothyclemans
timothyclemans / glass.html
Last active August 29, 2015 14:00
[wearscript] Checklists with QR
<!-- Complex checklists V2 -->
<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>
<script src="http://checklistsforglass.com/static/js/show_checklist.js"></script>
<script src="http://checklistsforglass.com/static/js/glass.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
@timothyclemans
timothyclemans / glass.html
Created April 17, 2014 00:52
checklists for Chris
<!-- Complex checklists V2 -->
<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>
<script src="http://checklistsforglass.com/static/js/show_checklist.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
body {
@timothyclemans
timothyclemans / AndroidManifest.xml.erb
Last active August 29, 2015 13:59
Wear Script APK creation
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.weariverse.<%= $package %>"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
@timothyclemans
timothyclemans / glass.html
Created April 10, 2014 18:30
[wearscript] complex checklists v2
<!-- Complex checklists V2 -->
<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>
<script src="http://checklistsforglass.com/static/js/show_checklist.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
body {
@timothyclemans
timothyclemans / glass.html
Created April 10, 2014 17:15
[wearscript]
<!-- Complex checklists V2 -->
<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>
<script src="http://checklistsforglass.com/js/show_checklist.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
<style>
body {
@timothyclemans
timothyclemans / glass.html
Created April 5, 2014 23:31
[wearscript]
<!-- Complex checklists -->
<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>
body {
font-family:roboto;
@timothyclemans
timothyclemans / glass.html
Created April 4, 2014 17:25
[wearscript]
<!-- Complex checklists -->
<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'>
<!-- 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>-->
@timothyclemans
timothyclemans / glass.html
Created April 4, 2014 00:02
[wearscript]
<!-- Complex checklists -->
<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'>
<!-- 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>-->