Skip to content

Instantly share code, notes, and snippets.

View carloshs92's full-sized avatar
🎯
Focusing

Carlos carloshs92

🎯
Focusing
View GitHub Profile
@carloshs92
carloshs92 / Custom ParsleyValidator
Last active August 29, 2015 14:01
Custom ParsleyValidator
window.ParsleyValidator.addValidator("document", (value, requirement) ->
tipo = parseInt($(dom.selDocument).val())
switch tipo
#DNI
when 1
error_msg = 'dni'
value.length == 8
#RUC
when 2
error_msg = 'ruc'
@carloshs92
carloshs92 / Orden sublistas
Created June 10, 2014 21:29
Sub listas ordenadas
<style type='text/css'>
/*<![CDATA[*/
ol { counter-reset: item }
li { display: block }
li:before { content: counters(item, ".") " "; counter-increment: item }
/*]]>*/
</style>
Instalación
sudo apt-get install libxslt1-dev libxslt1.1 libxml2-dev libxml2 libssl-dev
aptitude install libxml2
aptitude install libxslt
aptitude install libxml2-dev
aptitude install libxslt-dev
aptitude install python-dev
aptitude install python-setuptools
@carloshs92
carloshs92 / Subir paquetes a Pypi
Created June 26, 2014 14:56
Subir paquetes a Pypi
Create a .pypirc configuration file
[distutils] # this tells distutils what package indexes you can push to
index-servers =
pypi # the live PyPI
[pypi] # authentication details for live PyPI
repository: https://pypi.python.org/pypi
username: {{your_username}}
password: {{your_password}}
@carloshs92
carloshs92 / Formatear un USB
Created January 29, 2015 16:33
Tips de Linux
sudo umount /dev/sdb1 -f
*sdb1 => ubicacion del usb
**Puedes saber el nombre de la partición con gparted
sudo mkfs.vfat -F 32 -n USB3.0 /dev/sdb1
* 32=> Fat32
* USB3.0 => Nombre a asignar
@carloshs92
carloshs92 / Configuracion de Monitor
Created February 9, 2015 17:23
Configuraciones en Linux
http://askubuntu.com/questions/377937/how-to-set-a-custom-resolution
sudo xrandr --addmode DVI-I-1 "1366x768"
@carloshs92
carloshs92 / md
Created August 4, 2015 17:01
Instalar Selenium
Instalar el Servidor de Selenium
---------------------------------
* Se debe tener instalado java - jdk
descargar selenium-server-standalone-2.46.0.jar desde la url https://selenium-release.storage.googleapis.com/index.html?path=2.46/
Luego ejecutar
java -jar selenium-server-standalone-2.46.0.jar
Luego de esto se podra utilizar distrintas herramientas como webdriver.io
@carloshs92
carloshs92 / README.txt
Last active December 9, 2015 17:15
PageObject Python and PyEnv
Installation
pip install --egg pyenv
pyenv install 2.7.8
pyenv rehash
Page Objects
https://github.com/mario21ic/aptitus_pageobject
http://www.guru99.com/page-object-model-pom-page-factory-in-selenium-ultimate-guide.html
http://qanewsblog.com/2014/08/07/patrones-de-diseno-en-automatizacion-page-objects/
http://martinfowler.com/bliki/PageObject.html
@carloshs92
carloshs92 / taller101-github-proyectos.md
Created June 27, 2016 15:08 — forked from juaneladio/taller101-github-proyectos.md
Proyectos terminados del Taller 101: Publicando mi proyecto web en Github