This file contains 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 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 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 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 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 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 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 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); | |
} |
This file contains 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://t.me/pythonbr/288981 | |
Marca d'água em PDF | |
pip install pypdf2 requests reportlab""" | |
import io | |
import requests | |
from reportlab.pdfgen.canvas import Canvas | |
from reportlab.lib.colors import Color | |
from PyPDF2 import PdfReader, PdfWriter |
This file contains 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
""" | |
Finding the solution for x ^ (x + 1) = (x + 1) ^ x | |
python main.py m start stop step dps | |
pip install matplotlib mpmath numpy sympy | |
Supposed truth values: | |
2.271823903 | |
2.293053068 |
NewerOlder