Skip to content

Instantly share code, notes, and snippets.

View qdot's full-sized avatar
🦊

qDot qdot

🦊
View GitHub Profile
marionette('First Time Use >', function() {
var assert = require('assert');
var FTU = 'app://communications.gaiamobile.org';
var client = marionette.client();
var clickThruPanel = function(panel_id, button_id) {
if (panel_id == '#wifi') {
// The wifi panel will bring up a screen to show it is scanning for
// networks. Not waiting for this to clear will blow test timing and cause
@qdot
qdot / gist:8462849
Created January 16, 2014 20:29
ftu test
marionette('First Time Use >', function() {
var assert = require('assert');
var FTU = 'app://communications.gaiamobile.org';
var client = marionette.client();
var clickThruPanel = function(panel_id, button_id) {
if (panel_id == '#wifi') {
// The wifi panel will bring up a screen to show it is scanning for
// networks. Not waiting for this to clear will blow test timing and cause
Prepare:
mkdir foo
cd foo
git init
echo A>A
echo B>B
git add A B
git commit -m AB
git checkout -b br1
echo BB>>B
@qdot
qdot / gist:670533
Created November 10, 2010 08:10
Python kinect control packet replay code
# some example code from pyusb, otherwise its all public domain. enjoy & keep hackin! - ladyada
import sys
# sys.path.append('/Users/qdot/git-projects/library/usr_darwin_10.5_x86/lib/python2.6/site-packages')
import usb.core
import usb.util
import sys
import time
# find our device
;; Stefan Monnier <foo at acm.org>. It is the opposite of fill-paragraph
;; Takes a multi-line paragraph and makes it into a single line of text.
(defun unfill-paragraph ()
(interactive)
(let ((fill-column (point-max)))
(fill-paragraph nil)))