Skip to content

Instantly share code, notes, and snippets.

View goodki-d's full-sized avatar
πŸ₯¦

goodki-d

πŸ₯¦
View GitHub Profile
@goodki-d
goodki-d / sanic_og_logo.py
Created January 11, 2025 11:12
sanic og logo
LOGO = """
β–„β–„β–„β–„β–„
β–€β–€β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„β–„ _______________
β–„β–„β–„β–„β–„ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„ / \\
β–€β–€β–€β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ ▀▐▄ β–€β–β–ˆ | Gotta go fast! |
β–€β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–„ β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„β–ˆβ–ˆ | _________________/
β–€β–„β–„β–„β–„β–„ β–€β–€β–ˆβ–„β–€β–ˆβ•β•β•β•β–ˆβ–€ |/
β–€β–€β–€β–„ β–€β–€β–ˆβ–ˆβ–ˆ β–€ β–„β–„
β–„β–ˆβ–ˆβ–ˆβ–€β–€β–ˆβ–ˆβ–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–„ β–„β–€β–€β–€β–€β–€β–€β–ˆβ–Œ
β–ˆβ–ˆβ–€β–„β–„β–„β–ˆβ–ˆβ–€β–„β–ˆβ–ˆβ–ˆβ–€ β–€β–€β–ˆβ–ˆβ–ˆβ–ˆ β–„β–ˆβ–ˆ
@goodki-d
goodki-d / bitbucket-pipelines.yml
Last active February 10, 2025 11:12
Using uv in Bitbucket Pipelines
image:
name: ghcr.io/astral-sh/uv:<UV_VERSION>-python<PYTHON_VERSION>-<BASE_LAYER>
definitions:
caches:
uv:
key:
files:
- uv.lock
@goodki-d
goodki-d / themes.txt
Created January 9, 2025 08:29
Rich available traceback themes
abap
algol
algol_nu
arduino
autumn
bw
borland
colorful
default
dracula
@goodki-d
goodki-d / build_spec.py
Last active January 9, 2025 08:12
Build OpenAPI spec for a sanic app without starting the server
import json
from sanic import Sanic
from sanic_ext.extensions.openapi.builders import SpecificationBuilder
app = Sanic(__name__)
def get_spec(a: Sanic):
from sanic import Sanic
import datetime
from dataclasses import dataclass
import timeit
app = Sanic(__name__)
def foo(): ...