Skip to content

Instantly share code, notes, and snippets.

View MiguelMachado-dev's full-sized avatar
working hard

Miguel Machado MiguelMachado-dev

working hard
View GitHub Profile
@MiguelMachado-dev
MiguelMachado-dev / index.js
Created October 30, 2022 20:40
Eleições 2022 Presidente
// move this to a file and install axios and node-cron to package.json
const axios = require("axios");
const cron = require("node-cron");
const BASE_URL =
"https://resultados.tse.jus.br/oficial/ele2022/545/dados-simplificados/br/br-c0001-e000545-r.json";
const main = async () => {
try {
@MiguelMachado-dev
MiguelMachado-dev / yubikey-windows10.md
Created July 21, 2022 20:26 — forked from andreibosco/yubikey-windows10.md
Setting up Yubikey with SSH and Git on Windows 10 + Powershell
@MiguelMachado-dev
MiguelMachado-dev / Get wordle solution answer.js
Created February 9, 2022 14:59
This code will show you the Today's wordle answer
const storage = JSON.parse(localStorage.gameState)
const { solution } = storage
console.log(`The solution is: ${solution}`)
@MiguelMachado-dev
MiguelMachado-dev / respostaTermooo.js
Created February 9, 2022 14:34
Um código para retornar a resposta/solução da palavra do dia do term.ooo
const storage = JSON.parse(localStorage.termo)
const { solution } = storage.state
console.log(`A palavra do dia é: ${solution}`)
@MiguelMachado-dev
MiguelMachado-dev / readme.md
Last active August 1, 2019 14:55
Install eslint nodeJS

Install the packages

yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D

Run yarn eslint --init

In eslintrc.js, paste and override the next code

module.exports = {
  env: {
    es6: true,
 node: true
@MiguelMachado-dev
MiguelMachado-dev / readme.md
Last active November 28, 2020 02:10
Very quick Eslint configuration for ReactJS - Airbnb standard

Install the packages

yarn add eslint -D

Run yarn eslint --init and set your configuration to use airbnb and create a javascript configuration file.

yarn add prettier eslint-config-prettier eslint-plugin-react-hooks eslint-plugin-prettier babel-eslint eslint-plugin-jsx-a11y -D

To use absolute paths

If you want to use absolute paths just copy the .eslintrc.js below, else, delete the settings object in it.

print('{:=^30}'.format('Tabuada'))
while True:
x = int(input('A tabuada de qual número deseja saber? '))
y = int(input('Ate qual número deseja saber a tabuada do número inserido previamente? '))
for i in range(y):
print('{} x {} = {}'.format(i, x, i * x))