Skip to content

Instantly share code, notes, and snippets.

Avatar

Ezequiel Uhrig zuhrig

View GitHub Profile
View expediente.py
import urllib2
from bs4 import BeautifulSoup
numero_expediente = 61333
url = "http://www.concejodeliberante.laplata.gov.ar/MesaEntradas/expediente.asp?Numero={}&Buscar=Enviar".format(numero_expediente)
page = urllib2.urlopen(url)
soup = BeautifulSoup(page, 'html.parser')
expediente = {
"id": [text for text in soup.table.find_all('tr')[0].find_all('li')[0].stripped_strings][1],
View gist:10bbac3a91712899e0b30d2e0ace711c
# trigger pipeline start
curl --request POST \
--url http://lab-tools-app1-staging.east/api/queues/pipeline.started.v1/produce \
--header 'content-type: application/json' \
--data '{
"_payload": {
"s3_sequence_url": "s3://ubiome-raw/production/NS500457/seqRun_{{seqRunId}}/180529_NS500457_0340_AH37LHAFXY",
"annotation_id": 538
},
"_user_id": "{{tuUserIdDeUbiome}}"
View exportpath
echo "export PATH=$PATH:$HOME/path_wish_to_export" >> wher_to_export (.profile, .bash_rc)
@zuhrig
zuhrig / example adb vs spoon
Last active May 26, 2017
parametros spoon vs adb instrument cli
View example adb vs spoon
#Actual:
adb shell am instrument -w -r
-e debug $DEBUG_FLAG
-e class $TEST_CLASS_NAME $TEST_APK
-e COUNTRY_CODE $COUNTRY_CODE
#con spoon-client:
./gradlew spoon
-PclassName=$TEST_CLASS_NAME
-PapkToTest=$DECOLAR/DESPEGAR_PKG_ID
View adb+.sh
#!/bin/bash
# Script adb+
# Usage
# You can run any command adb provide on all your current devices
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
#
# Examples
# ./adb+ version
# ./adb+ install apidemo.apk
# ./adb+ uninstall com.example.android.apis
View slides-protractor-actions.js
var webElement = element(locator);
// Click en el elemento
webElement.click();
// Simula el teclado manda valores.
webElement.sendKeys('my text');
// Limpia el contenido. Normalmente de un input
webElement.clear();
View slides-protractor-locators.js
// encontrar un elemento usando selectores css
by.css('.myclass')
// encontrar un elemento dado un id
by.id('myid')
// encontrar un elemento mediante la directiva de angular ng-model
by.model('name')
// encontrar un elemento atado a una variable
View slides_jasmine_examples.js
/**
* Describe suite -> inicio
* * pre-condiciones -> hook(before)
* * * test-A -> it
* * * * asserts -> expect
* * * test-B -> it
* * * * asserts -> expect
* * post-condiciones -> hook(after)
* Describe suite -> fin
**/