This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# limpeza de arquivos inuteis no sistema | |
# Criado por Wellington P. Gonçalves (Wellington Geek) | |
# email: [email protected], [email protected] | |
# Para executar o script basta localizar a pasta e digitar chmod +x clear.sh | |
echo "Limpando a lixeira" | |
sudo rm -rf /home/$USER/.local/share/Trash/files/* | |
echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlrd | |
import random | |
import numpy as np | |
#https://ark4n.wordpress.com/2009/08/26/lendo-arquivos-xls-com-python/ | |
pesos = np.array([0.0, 0.0, 0.0, 0.0]) | |
taxaAprendizagem = 0.01 | |
epoca = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlrd | |
import random | |
import numpy as np | |
#https://ark4n.wordpress.com/2009/08/26/lendo-arquivos-xls-com-python/ | |
pesos = np.array([0.0, 0.0, 0.0, 0.0]) | |
taxaAprendizagem = 0.01 | |
epoca = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xlrd | |
import random | |
import numpy as np | |
#https://ark4n.wordpress.com/2009/08/26/lendo-arquivos-xls-com-python/ | |
pesos = np.array([0.0, 0.0, 0.0, 0.0]) | |
taxaAprendizagem = 0.01 | |
epoca = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def sigmoid(soma): | |
return 1 / (1+np.exp(-soma)) | |
def sigmoidDerivada(sig): | |
return sig * (1 - sig) | |
entradas = np.array([[0,0], | |
[0,1], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
i=1 | |
while [ $i -le $2 ]; do | |
echo $1 | |
((i++)) | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Foram digitados $# parâmetros. São eles: $*. | |
i=1 | |
while [ $i -le $# ]; do | |
variavel=${i} | |
echo $i '-' ${!variavel} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RED='\033[0;31m' | |
NC='\033[0m' | |
#echo Foram digitados $# parâmetros. São eles: $*. | |
if [ $# -lt 1 ]; then | |
echo -e "${RED}Faltam parâmetros${NC}" | |
echo 'para executar o script com sucesso faça o seguinte comando:' | |
echo $0 ' param1 param2 param3 paramN' | |
else | |
i=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
"-h") echo "Este é um script de teste, logo não há o que ajudar" | |
;; | |
"-v") echo "Versão 0.1" | |
;; | |
*) echo "Opção inválida! Digite $0 -h pra obter ajuda" | |
exit 1 | |
;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo $3 | nc $1 $2 |
OlderNewer