Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Carlos carloshs92

🎯
Focusing
Block or report user

Report or block carloshs92

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@carloshs92
carloshs92 / SimpleWebRTC.tsx
Created Jun 6, 2019
SimpleWebRTC code example
View SimpleWebRTC.tsx
<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 Sep 13, 2018
Detect the number of children an element has with CSS
View index.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 / README.txt
Last active Dec 9, 2015
PageObject Python and PyEnv
View README.txt
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 Aug 4, 2015
Instalar Selenium
View md
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
View Configuracion de Monitor
http://askubuntu.com/questions/377937/how-to-set-a-custom-resolution
sudo xrandr --addmode DVI-I-1 "1366x768"
View Formatear un USB
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
View 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}}
View gist:893d5536a93c75146bd8
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
You can’t perform that action at this time.