Skip to content

Instantly share code, notes, and snippets.

View DiegoVallely's full-sized avatar
🎯
Focusing

Diego Sousa Miranda DiegoVallely

🎯
Focusing
View GitHub Profile
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) {
#!/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."
@DiegoVallely
DiegoVallely / email_collector.py
Last active January 1, 2016 00:09
A simple script to collect a email from site inputted
# 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):