Do this:
uvx --from pillow python -c "from PIL import Image; Image.open('README-assets/ad-example-1.png').save('README-assets/ad-example-1-better.webp', quality=75)"| unalias act 2>/dev/null | |
| # Activate virtual environments | |
| act() { | |
| for d in .venv env venv .env; do | |
| if [ -d "$d" ]; then | |
| if [ -f "$d/bin/activate" ]; then | |
| source "$d/bin/activate" | |
| echo "Virtual Environment activated: $d" | |
| return |
| """ | |
| analyse_functions.py | |
| -------------------- | |
| Statically analyses a Python file and outputs: | |
| - A Markdown report of all functions (with signatures, docstrings, line numbers) | |
| - A Mermaid call-graph diagram (who calls whom) | |
| Usage: | |
| python analyse_functions.py <target_file.py> [--out report.md] | |
| """ |
| // Generated from src/extraction-engine.js by scripts/build-exporters.js. | |
| // Edit the source engine or this build script, then run npm run build. | |
| (() => { | |
| 'use strict'; | |
| (function initChatExporterEngine(root, factory) { | |
| const engine = factory(); | |
| if (root) { |
Do this:
uvx --from pillow python -c "from PIL import Image; Image.open('README-assets/ad-example-1.png').save('README-assets/ad-example-1-better.webp', quality=75)"| # USE IT LIKE THIS in main.py, for example: | |
| """ | |
| _TRACE_CALLS = install_call_tracing(app_root=ROOT, source_root=ROOT.parent) | |
| """ | |
| from __future__ import annotations | |
| import atexit | |
| import os | |
| import sys | |
| import time |
| import traceback | |
| def objetivo(): | |
| stack = traceback.extract_stack() | |
| caller = stack[-2] # quien llamó a esta función | |
| print(f"{caller.filename}:{caller.lineno} -> {caller.name}") | |
| def a(): | |
| objetivo() |
| from google.cloud import bigquery | |
| from google.oauth2 import service_account | |
| # TODO(developer): Set key_path to the path to the service account key | |
| # file. | |
| # key_path = "path/to/service_account.json" | |
| credentials = service_account.Credentials.from_service_account_file( | |
| key_path, | |
| scopes=["https://www.googleapis.com/auth/cloud-platform"], |
| # https://stackoverflow.com/questions/10312521/how-do-i-fetch-all-git-branches | |
| git branch -r \ | |
| | grep -v '\->' \ | |
| | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | |
| | while read remote; do \ | |
| git branch --track "${remote#origin/}" "$remote"; \ | |
| done | |
| git fetch --all | |
| git pull --all |
| # Activates a Python virtual environment by searching for common directory names. | |
| function act { | |
| for venv_dir in .venv venv env .env; do | |
| if [ -f "$venv_dir/bin/activate" ]; then | |
| . "$venv_dir/bin/activate" | |
| echo "Virtual environment activated: '$venv_dir'" | |
| return 0 | |
| fi | |
| done |
| zig cc -std=c99 main.c \ | |
| -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 \ | |
| -o app |