Based on the following guides:
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
javascript: | |
//mass scavenging by Sophie "Shinko to Kuma" | |
serverTimeTemp = $("#serverDate")[0].innerText + " " + $("#serverTime")[0].innerText; | |
serverTime = serverTimeTemp.match(/^([0][1-9]|[12][0-9]|3[01])[\/\-]([0][1-9]|1[012])[\/\-](\d{4})( (0?[0-9]|[1][0-9]|[2][0-3])[:]([0-5][0-9])([:]([0-5][0-9]))?)?$/); | |
serverDate = Date.parse(serverTime[3] + "/" + serverTime[2] + "/" + serverTime[1] + serverTime[4]); | |
var is_mobile = !!navigator.userAgent.match(/iphone|android|blackberry/ig) || false; | |
var scavengeInfo; | |
var tempElementSelection=""; | |
//relocate to mass scavenging page |
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
// 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 { |
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
const storage = JSON.parse(localStorage.gameState) | |
const { solution } = storage | |
console.log(`The solution is: ${solution}`) |
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
const storage = JSON.parse(localStorage.termo) | |
const { solution } = storage.state | |
console.log(`A palavra do dia é: ${solution}`) |
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
If you want to use absolute paths just copy the .eslintrc.js
below, else, delete the settings
object in it.
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
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)) |