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 "Isto é um teste" |
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 "Esse script testa a visibilidade de uma variável local. " | |
echo "A variável a ser testada terá o nome TESTE" | |
echo "Se a variável estiver definida localmente ou globalmente, ela aparecerá aqui em baixo:" | |
echo "TESTE="$TESTE |
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
################################# | |
# Uso: | |
# $> python coluna_liquido.py --help | |
# $> python coluna_liquido.py --valor-a 1 --valor-b 2 --valor-c 3 | |
# $> python coluna_liquido.py -a 1 -b 2 -c 3 | |
# Para inserir valores negativos: | |
# $> python coluna_liquido.py -a -1 -b -2 -c -3 | |
################################# | |
from optparse import OptionParser | |
import math |
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
################################# | |
# Uso: | |
# $> python bhaskara.py --help | |
# $> python bhaskara.py --valor-a 1 --valor-b 2 --valor-c 3 | |
# $> python bhaskara.py -a 1 -b 2 -c 3 | |
# Para inserir valores negativos: | |
# $> python bhaskara.py -a -1 -b -2 -c -3 | |
################################# | |
from optparse import OptionParser | |
import math |
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
################################# | |
# Uso: | |
# $> python media_armortizada.py --help | |
# $> python media_armortizada.py --lista 1,2,3 --armortiza 4 | |
# $> python media_armortizada.py -l 1,2,3 -X 4 | |
################################# | |
from optparse import OptionParser | |
# PROGRAMA PRINCIPAL | |
PROG = "media-armortizada" |
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
.build_testpypi_to_oficial_pypi: &build_production_script | |
- pip install virtualenv wheel | |
- python -m virtualenv venv && source venv/bin/activate | |
- python -m pip download --no-deps --index-url https://test.pypi.org/simple/ $PROGRAM | |
- PACKAGE=$(ls -la $PROGRAM* | awk '{ print $9 }') | |
- wheel unpack $PACKAGE | |
- rm $PACKAGE | |
- WHEEL_FOLDER=$(ls -la | awk '{ print $9 }' | grep $PROGRAM) | |
- mkdir $PROGRAM-$VERSION | |
- mkdir $PROGRAM-$VERSION/$PROGRAM |
OlderNewer