Skip to content

Instantly share code, notes, and snippets.

@connerbrooks
connerbrooks / glass.html
Created March 5, 2014 16:00
[wearscript] Pebble API
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script data-require="jquery" data-semver="2.0.3" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script>
function main() {
if (WS.scriptVersion(1)) return;
WS.gestureCallback('onPebbleSingleClick', function (name) {
WS.log('onPebbleSingleClick: ' + name);
WS.pebbleSetTitle('Robot Control');
@connerbrooks
connerbrooks / wearscript-pebble.html
Last active August 29, 2015 13:56
Wearscript-pebble example
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!--<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>
<!--currently works with a phone running WS connected to a pebble, running the Pebble Watch app from wearscript-pebble-->
@connerbrooks
connerbrooks / glass.html
Created March 3, 2014 22:24
[wearscript]
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function main() {
if (WS.scriptVersion(1)) return;
WS.pebbleSetBody('connected!', false);
WS.gestureCallback('onPebbleSingleClick', function (name) {
WS.log('onPebbleSingleClick: ' + name);
switch (name) {
@connerbrooks
connerbrooks / UCF_WPA2-Arch.md
Last active January 4, 2016 15:19
Connecting to UCF_WPA2 on Arch Linux with netctl
@connerbrooks
connerbrooks / wlp3s0-UCF_WPA2
Created January 26, 2014 21:48
UCF_WPA2 netctl profile
Description='UCF_WPA2'
Interface=wlp3s0
Connection=wireless
Security=wpa-configsection
ca_path=/etc/ssl/certs/incommonca.cer
IP=dhcp
WPAConfigSection=(
'ssid="UCF_WPA2"'
'key_mgmt=WPA-EAP'
'eap=PEAP'
@connerbrooks
connerbrooks / arch-x230t.md
Last active December 30, 2022 01:03
Installing Arch Linux on x230t

x230t Arch Install

Prep

  • Create a USB live disk with arch ISO. If you have an existing Linux install you can use dd.
  • Boot to the USB drive, and open the Arch Beginner Guide on a separate computer.

Drivers

  • xf86-video-intel

Input Devices