This file contains 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
<type>(<scope>): <subject> | |
<body> | |
<footer> | |
# Available types: | |
# | |
# feat : new feature for the user, not a new feature for build script | |
# fix : bug fix for the user, not a fix to a build script |
This file contains 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 | |
source /etc/os-release | |
# uninstall old versions | |
sudo apt-get remove docker docker-engine docker.io | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains 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 | |
startTime=`date +%s` | |
startTimeReadable=`date -d @$startTime '+%d/%m/%Y %T'` | |
echo "Início: $startTimeReadable" | |
# Inserir o comando aqui |
This file contains 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
const condicaoParaGripe = condicaoParaResfriado = function(umidade, temperatura) { | |
// [maximoParaUmidade, maximoParaTemperaturaAlta, maximoParaTemperaturaMedia] | |
const relacoesUmidadeTemperatura = [ | |
[20, 31, 35], | |
[25, 29, 35], | |
[30, 25, 33], | |
[35, 23, 30], | |
[40, 19, 27], | |
[45, 18, 26], | |
[50, 16, 23], |
This file contains 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
//* Remova a primeira barra para ativar o algoritmo 2 e desativar o 1 | |
console.log('algoritmo 1'); | |
/*/ | |
console.log('algoritmo 2'); | |
/**/ |
This file contains 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
<?php | |
/** | |
* Extrai sequencias de uma lista de números inteiros. | |
* | |
* Exemplos: | |
* | |
* print_r(extrairSequenciasNumericas([1, 2, 5, 8, 11, 10, 3])); | |
* [ [1, 2, 3], [10, 11] ] | |
* | |
* print_r(extrairSequenciasNumericas([5, 3, 4, 9, 7, 12, 13, 11])); |