Skip to content

Instantly share code, notes, and snippets.

import os, sys
a = 23
b = 23
lista = [23,32,43,54,63,72,84,93,102]
print(sys.version)

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
@rodvan
rodvan / bash-cheatsheet.sh
Created November 19, 2018 03:45 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@rodvan
rodvan / smartconfig_save.ino
Last active January 24, 2019 19:20
SmartConfig ESP8266 save Wifi configuration on Pin0
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
void setup() {
int cnt = 0;
WiFi.mode(WIFI_STA);
Serial.begin(9600);
pinMode(0, INPUT_PULLUP);
Serial.println("2 sec before clear SmartConfig");
delay(2000);
@rodvan
rodvan / gist:503b6cd1cb4d74b1d70eea15a8b2f4b5
Created February 28, 2019 00:02
MQTT for Raspberry Pi
var mqtt = require('mqtt')
//var Gpio = require('onoff').Gpio; //include onoff to interact with the GPIO
var LEDA = new Gpio(3, 'out'); //use GPIO pin 4, and specify that it is output
var LEDB = new Gpio(4, 'out'); //use GPIO pin 4, and specify that it is output
const say = require('say')
function esperando() {
// stuff you want to happen right away
console.log('Prendiendo foco y esperando 2 segundos');
}