Skip to content

Instantly share code, notes, and snippets.

View carloshs92's full-sized avatar
🎯
Focusing

Carlos carloshs92

🎯
Focusing
View GitHub Profile
@carloshs92
carloshs92 / SimpleWebRTC.tsx
Created June 6, 2019 19:54
SimpleWebRTC code example
<Provider store={store}>
<SWRTC.Provider configUrl={CONFIG_URL} userData={userDataToken} >
<SWRTC.Connecting configUrl={CONFIG_URL}>
<Loader size={40} style={{padding: '40px 0'}}/>
</SWRTC.Connecting>
<SWRTC.Connected configUrl={CONFIG_URL} userData={userDataToken}>
{/* Request the user's media */}
<SWRTC.RequestUserMedia audio={true} video={true} auto={true}/>
@carloshs92
carloshs92 / index.css
Last active September 13, 2018 16:01
Detect the number of children an element has with CSS
/* one item */
li:first-child:nth-last-child(1) {
/* -or- li:only-child { */
width: 100%;
}
/* two items */
li:first-child:nth-last-child(2),
li:first-child:nth-last-child(2) ~ li {
width: 50%;
@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
@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 / 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 / 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 / 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 / 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}}
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