Skip to content

Instantly share code, notes, and snippets.

View zuhrig's full-sized avatar

Ezequiel Uhrig zuhrig

View GitHub Profile
@zuhrig
zuhrig / slides_jasmine_examples.js
Last active August 17, 2016 18:58
explicacion jasmine
/**
* Describe suite -> inicio
* * pre-condiciones -> hook(before)
* * * test-A -> it
* * * * asserts -> expect
* * * test-B -> it
* * * * asserts -> expect
* * post-condiciones -> hook(after)
* Describe suite -> fin
**/
// 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
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();
@zuhrig
zuhrig / example adb vs spoon
Last active May 26, 2017 20:16
parametros spoon vs adb instrument cli
#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
@zuhrig
zuhrig / exportpath
Created June 7, 2017 14:24
export path
echo "export PATH=$PATH:$HOME/path_wish_to_export" >> wher_to_export (.profile, .bash_rc)
@zuhrig
zuhrig / gist:10bbac3a91712899e0b30d2e0ace711c
Created August 6, 2018 15:35
trigger pipeline detailus
# 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}}"
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],
@zuhrig
zuhrig / adb+.sh
Last active October 24, 2020 04:12
adb+
#!/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