Skip to content

Instantly share code, notes, and snippets.

View JvDev-hash's full-sized avatar

JvDev JvDev-hash

View GitHub Profile
@JvDev-hash
JvDev-hash / module.js
Last active July 22, 2022 19:30
Modulo para manipular os numeros
// Inicia Variáveis
const bichos = [
'Avestruz',
'Águia',
'Burro',
'Borboleta',
'Cachorro',
'Cabra',
'Carneiro',
'Camelo',
@JvDev-hash
JvDev-hash / bicho.js
Last active July 22, 2022 19:29
Consumo API Loto Federal
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 => {
@JvDev-hash
JvDev-hash / index.html
Created February 4, 2020 19:05
One Page Navigation CSS Menu
<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>
@JvDev-hash
JvDev-hash / heroku-python-cli.py
Last active January 30, 2020 01:09
Automatizing the deploy of applications on heroku
#!/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