Skip to content

Instantly share code, notes, and snippets.

Avatar

Diego Sousa Miranda DiegoVallely

View GitHub Profile
@DiegoVallely
DiegoVallely / email_collector.py
Last active Jan 1, 2016
A simple script to collect a email from site inputted
View email_collector.py
# A simple script to collect a email from site inputted
# create by Diego de Sousa Miranda
# email dsousamiranda@gmail.com
import urllib2
import re
class EmailCollector(object):
View trab_so
#!/bin/sh -
menu (){
opc=
until [ "$opc" = "5" ]; do
echo ""
echo "Menu"
echo "1 - criar três subdiretórios (av1, av2 e av3) no seu diretório home."
echo "2 - criar três arquivos (nota1, nota2 e nota3) em av1, av2 e av3 respectivamente."
View focus.js
function onoffSelect_focus(obj){
var userAgent = window.navigator.userAgent.toLowerCase();
if(userAgent.indexOf("msie") > -1) {
obj.focus();
obj.select();
}else if(userAgent.indexOf("firefox") > -1) {
obj.focus();
obj.select();
}else if(userAgent.indexOf("opera") > -1) {