Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import argparse
import datetime
import time
import threading
from googleapiclient.discovery import build
from httplib2 import Http
from oauth2client.client import GoogleCredentials
library w_webdriver_utils.gwt_syntax;
import 'functional_test_helper.dart';
List<Function> _scenarioSteps;
String _scenarioDescription;
step(String description, void body()) {
_scenarioDescription += "\n$description";
_scenarioSteps.add(body);
@ryanhanks-wf
ryanhanks-wf / gist:43302cbfcf06cc911f64
Created December 30, 2014 19:06
test for add pdf to legacy binder manager
'add a pdf to existing binder manager': function () {
var binder = {
name: 'Add a PDF to existing binder manager'
};
return this.remote
.buildBinder(binder)
.then(function(val) {
this.get(require.toUrl('http://localhost:8010/books/' + val.contentKey));
})
.sleep(1000)
@ryanhanks-wf
ryanhanks-wf / gist:03fc2d65af510cd95410
Created November 21, 2014 13:25
Dart unit test scratch
import 'package:unittest/unittest.dart';
var binderRequestResponseResults = {"status": 200, "reason": "OK", "messages": [], "result": {"latestrevision": "Qm9va1JldmlzaW9uHkJvb2tSZXZpc2lvbjpiODY0Y2Y5YWNhY2M0YWZiYWVhZTVlZmRjYzM0OTMyNg", "rootid": "f06d665cc6aa4e758225f2208a2c00ec", "name": "Jeff's Binder of Wonders Test", "url": "https://wf-books-stage.appspot.com/api/v1/books/Qm9vax5Cb29rOmVhOGEyZmNlMzBkYzQ0MWNhMjVhMmJlMTA5ZmRhYzUz", "lastmodified": "20141120T160223+0000", "createdate": "20141006T202219+0000", "createdby": "Jeff Scaturro", "owner": true, "islocked": false, "lastpublished": "20141120T160220+0000", "dirty": false, "key": "Qm9vax5Cb29rOmVhOGEyZmNlMzBkYzQ0MWNhMjVhMmJlMTA5ZmRhYzUz", "treeversion": 48, "isarchived": false, "intrash": false}}["result"];
var tabsRequestResponseResults = {"status": 200, "reason": "OK", "messages": [], "results": [{"status": null, "lastmodified": "20141006T202252+0000", "createdate": "20141006T202252+0000", "treeversion": 48, "published_from_key": "Qm9va1RhYh5Cb29rVGFi
@ryanhanks-wf
ryanhanks-wf / gist:70e665e991786cc610c6
Created August 11, 2014 12:21
Android studio log filter - ^((?!eglCodecCommon).)*$
^((?!eglCodecCommon).)*$
#!/usr/bin/env zsh
merge_branch=BOOKS-3679
merge_branch_base=wf-book-common/master
bigsky_merge_parent=origin/master
pushd bigsky
git fetch origin
git fetch tony
@ryanhanks-wf
ryanhanks-wf / gist:6731564
Created September 27, 2013 16:52
Build script
build=$(date "+%Y%m%d%H%M")
cd ~/Development/lib_viewer
git fetch upstream
git br build-$build remotes/upstream/master
git co build-$build
git rebase -i head
# x git merge upstream/ANTI-93
# x git merge upstream/BOOKS-3019
# x git merge upstream/ANTI-164
@ryanhanks-wf
ryanhanks-wf / gist:5996347
Created July 14, 2013 22:23
kill coreaudio fix airplay
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`