Skip to content

Instantly share code, notes, and snippets.


Carlos carloshs92

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 / 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.Connected configUrl={CONFIG_URL} userData={userDataToken}>
{/* Request the user's media */}
<SWRTC.RequestUserMedia audio={true} video={true} auto={true}/>
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 {
width: 50%;
carloshs92 / README.txt
Last active Dec 9, 2015
PageObject Python and PyEnv
View README.txt
pip install --egg pyenv
pyenv install 2.7.8
pyenv rehash
Page Objects
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
Luego ejecutar
java -jar selenium-server-standalone-2.46.0.jar
Luego de esto se podra utilizar distrintas herramientas como
View Configuracion de Monitor
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
username: {{your_username}}
password: {{your_password}}
View gist:893d5536a93c75146bd8
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.