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
| // Inicia Variáveis | |
| const bichos = [ | |
| 'Avestruz', | |
| 'Águia', | |
| 'Burro', | |
| 'Borboleta', | |
| 'Cachorro', | |
| 'Cabra', | |
| 'Carneiro', | |
| 'Camelo', |
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 { montarTabela, verBichoSorteado } from './module.js' | |
| const URL_TO_FETCH = 'https://loteriascaixa-api.herokuapp.com/api/loteria-federal/latest'; | |
| let tabelaBichos = montarTabela() | |
| // Consumir a API da Loteria | |
| fetch(URL_TO_FETCH) | |
| .then(response => response.json()) // retorna uma promise | |
| .then(result => { |
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
| <div class="ct" id="t1"> | |
| <div class="ct" id="t2"> | |
| <div class="ct" id="t3"> | |
| <div class="ct" id="t4"> | |
| <div class="ct" id="t5"> | |
| <ul id="menu"> | |
| <a href="#t1"><li class="icon fa fa-bolt" id="uno"></li></a> | |
| <a href="#t2"><li class="icon fa fa-keyboard-o" id="dos"></li></a> | |
| <a href="#t3"><li class="icon fa fa-rocket" id="tres"></li></a> | |
| <a href="#t4"><li class="icon fa fa-dribbble" id="cuatro"></li></a> |
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
| #!/usr/bin/python | |
| # To increase the level of automation, just create an alias on linux to this app or insert the app on PATH | |
| import sys, getopt, os | |
| from random import random | |
| def heroku_push(type: str, number: int): | |
| """This method will run the git commands to add the new additions to the heroku | |