Skip to content

Instantly share code, notes, and snippets.

// Testing Gists in Vim
// This is neat!
// Testing from work machine
final int SCAN_QR = 4;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = new Intent(this, CaptureActivity.class);
startActivityForResult(intent, SCAN_QR);
}
@jaxbot
jaxbot / glass.html
Created April 20, 2014 15:55
[wearscript] playing with accel and gyro
<html ng-app='glassApp'>
<head>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0-beta.3/angular.js'></script>
<script>
glassApp = angular.module('glassApp', []);
glassApp.controller('glassController', function($scope) {
function server() {
WS.log('Welcome to WearScript');
WS.sound('SUCCESS')