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
| # Nyveon 2022 | |
| import requests | |
| import datetime | |
| import json | |
| import logging | |
| import asyncio | |
| import telegram | |
| from telegram.constants import ParseMode | |
| # Telegram config |
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 time | |
| from pynput import keyboard | |
| kb = keyboard.Controller() | |
| current_value = '' | |
| def input_binary(value: str) -> None: | |
| print(value) | |
| value = int(value) |
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 itertools | |
| import requests | |
| import time | |
| from bs4 import BeautifulSoup | |
| # Config | |
| LENGTH = 1 | |
| CHARS = "abcdefghijklmnopqrstuvwxyz0123456789" | |
| URL = "https://www.nic.cl/registry/Whois.do?d=" | |
| OUTPUT = "available.txt" |
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
| /* Readable version */ | |
| (async () => { | |
| const apiResponse = await fetch('https://mindicador.cl/api'); | |
| const jsonData = await apiResponse.json(); | |
| const PRECIOUF = jsonData.uf.valor; | |
| const priceElements = document.querySelectorAll('.andes-money-amount__fraction'); | |
| priceElements.forEach((elem) => { | |
| const ufSymbolElement = elem.previousElementSibling; |
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
| /* Readable Version */ | |
| javascript:(function(){ | |
| const products = document.querySelectorAll('.shops__layout-item'); | |
| products.forEach(product => { | |
| const title = product.querySelector('section').ariaLabel; | |
| const massMatch = title.match(/(\d+(?:\.\d+)?)(g|gr|kg)/); | |
| if (!massMatch) return; | |
| let mass = parseFloat(massMatch[1]); | |
| if (massMatch[2] === 'kg') mass *= 1000; |