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
| """ | |
| Finds the lowest power of initial_exponent that is divisible by initial_modulo. | |
| Uses mpmath library for arbitrary-precision arithmetic. | |
| Uses colorama to do nothing useful. | |
| pip install colorama mpmath | |
| """ | |
| ## Configuration | |
| # Change to start from a different iteration if restarting |
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
| ## Script BASH pra adaptar nomes de arquivos nos subdiretórios pra NTFS | |
| ## Arquivos .zip foram extraídos para o diretório atual com: | |
| ## 7z -aos x \*.zip | |
| ALVO="/media/user/WINDOWS/devsamurai" | |
| for D in * | |
| do | |
| if [ -d "${D}" ] | |
| then | |
| pushd "${D}" |
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
| """The 987654321 / 123456789 thing""" | |
| import mpmath | |
| import sys | |
| offset = 1e0 | |
| limit = 1e1 | |
| last = 8 | |
| if len(sys.argv) > 1: |
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
| @app.route("/test", methods = ['GET', 'POST']) | |
| async def test(*args, **kwargs) -> str: | |
| """Tests""" | |
| try: | |
| if 'error' in kwargs: | |
| raise Exception(kwargs.get('error')) | |
| print(f"request.form: {await request.form}") | |
| print(f"forms: {[f for f in (await request.form)]}") | |
| print("form-zero" in (await request.form)) | |
| user_login_form: QuartForm = UserLoginForm( |
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
| I am attesting that this GitHub handle iuriguilherme is linked to the Tezos account tz1TfaiDyZ6YqPVXUXsxBV2oAYE5VanEnvLp for tzprofiles | |
| sig:edsigtv6Gyyfy2iSHBkMELYeYGVJ1BUaxFXGFmk3GNMdaXYoDeZmFAm4YqT7fvzxKCbUrTJi7HBTMQdV1TMysE7FutvfqczvRhm |
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
| """Find contrast ratio for colors | |
| TODO: Use scrollbars for color list | |
| pip install numpy""" | |
| import ast | |
| import csv | |
| import functools | |
| import inspect |
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
| """https://stackoverflow.com/questions/57651030/take-hex-code-rgb-and-d\ | |
| isplay-the-color-in-tkinter""" | |
| import tkinter as tk | |
| from tkinter import * | |
| color_list = [ | |
| ('black', (0, 0, 0)), | |
| ('blue', (0, 0, 255)), | |
| ('red', (255, 0, 0)), |
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
| """ | |
| Spiral Minimal Example v3 | |
| """ | |
| import tkinter | |
| import turtle | |
| i = 1 | |
| ## YMMV | |
| ## j = 2 will raise `ZeroDivisionError: float division by zero` because screen scale is zero |
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
| """ | |
| This was supposed to be a Moiré Fibonacci Spiral for Genuary 23 | |
| https://genuary.art/prompts#jan23 | |
| However, I couldn't figure out how to pair up a Moiré pattern and a | |
| Fibonacci pattern. So this is just Fibonacci Spirals :P | |
| It has been published as Genuary 18 "Definitely not a grid" | |
| This is made with a 1366x768 screen size |
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
| /* | |
| * Validador e gerador de CPF em javascript | |
| * Domínio Público 2016 | |
| * Faça péssimo uso | |
| */ | |
| // http://run.plnkr.co/plunks/93FPpacuIcXqqKMecLdk/ | |
| function isNumeric(n) { | |
| return !isNaN(parseFloat(n)) && isFinite(n); | |
| } |
NewerOlder