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
*Pré requisitos ********* | |
=> git instalado | |
=> heroku cli instalado | |
=> aplicação gerenciada pelo git | |
************************* | |
#Login no heroku | |
heroku login | |
#Criando aplicação |
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
#Configurações básicas | |
git config --global user.name "<username>" | |
git config --global user.email "<email>" | |
git config --global core.editor <comando editr> //Opcional | |
#Todas as informações de configuração | |
git config --list | |
#Verificar configuração | |
git config user.name |
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
//Define um data de inicio | |
var startDate = new Date('2018-03-20'); | |
//Determina os dias para estimativa (EX.: Expira em 30 dias, faltam 30 dias...) | |
var estimate = 30; | |
//Retorna a quantidade de dias restantes para o tempo estimado | |
function remainingDays(startDate, estimate){ | |
//Define a data atual com a final | |
var finishDate = new Date().getFullYear() + "-" + (new Date().getMonth()+1) + "-" + new Date().getDate(); | |