Skip to content

Instantly share code, notes, and snippets.

View thomi137's full-sized avatar
🤗
Out to learn

Thomas Prosser thomi137

🤗
Out to learn
View GitHub Profile
@thomi137
thomi137 / CensusAppTest.java
Created November 4, 2013 14:12
Android JUnit sample code for the Tricentis Accelerate Conference 7. November 2013
/**
* CensusAppTest
* com.newthinktank.censusapp.test
* ContactListActivityTest.java
* TODO
* Copyright (c) 30.10.2013, 2013 t.prosser
* Description:
*/
package com.newthinktank.censusapp.test;
@thomi137
thomi137 / accelerate.py
Created November 4, 2013 14:09
Monkey Runner example script for the Tricentis Accelerate Conference 7. November 2013
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
# Get a device
device = MonkeyRunner.waitForConnection()
def main():
# Install Package
device.installPackage("C:\\Users\\t.prosser\\workspace\\CensusApp\\bin\\CensusApp.apk")
package = 'com.newthinktank.censusapp'
main_activity = 'com.newthinktank.censusapp.ContactListActivity'
@thomi137
thomi137 / UIAutomatorTestCase.java
Created November 4, 2013 14:19
CensusAppUITest. UIAutomator sample code for the Tricentis Accelerate Conference 2013
/**
* CensusAppUITest
* com.newthinktank.censusapp.test
* HomeScreenTestCase.java
* TODO
* Copyright (c) 30.10.2013, 2013 t.prosser
* Description:
*/
package com.newthinktank.censusapp.test;
target$ = this.source$.pipe(
concatMap(() => this.buddies$.pipe(
concatAll(),
first(),
map( name => 'Hi ' + name.name))),
flatMap(greeting => greeting))
.subscribe( res => console.log(res));
@thomi137
thomi137 / docker-compose.yml
Created July 31, 2020 10:40
Docker Compose file for local Wordpress development
version: '3.3'
services:
db:
container_name: 'local-wordpress-db'
image: 'mysql:5.7'
volumes:
- './data/mysql:/var/lib/mysql'
ports:
- 18766:3306
environment: