Skip to content

Instantly share code, notes, and snippets.

View mgaitan's full-sized avatar
🛠️
devex

Martín Gaitán mgaitan

🛠️
devex
View GitHub Profile
@mgaitan
mgaitan / tropes.md
Created August 9, 2026 02:32 — forked from ossa-ma/tropes.md
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@mgaitan
mgaitan / find_unused_modules.py
Created August 3, 2026 15:15
Fierro: detectar módulos Python candidatos a desuso
"""List Python modules that appear unused according to Ruff's import graph.
The result is intentionally conservative: modules used as scripts or mentioned
by non-Python files are excluded. Use ``--delete`` only after reviewing the
default output.
"""
from __future__ import annotations
import argparse
@mgaitan
mgaitan / prompt.md
Created July 19, 2026 15:14
borges project: Prompt original

Construí un MVP de buscador para un corpus completo de y sobre Jorge Luis Borges, usando Python 3.14, FastAPI, SQLAlchemy 2 async, Alembic, PostgreSQL en Neon y despliegue en FastAPI Cloud.

Objetivo:

  • descargar libros de Borges
  • Importar libros EPUB de Borges y también textos “sobre Borges”.
  • Preservar estructura editorial y bibliográfica.
  • Permitir búsqueda textual, semántica e híbrida.
  • Mostrar fragmentos relevantes, ampliar contexto y abrir el texto completo.
  • Filtrar/facetar por autor, obra, libro/edición, año, década, tipo de texto y naturaleza del documento.
  • Sugerir fragmentos y obras relacionadas.
@mgaitan
mgaitan / marshalling-refactor.md
Last active June 20, 2026 19:02
Fierro: marshalling, mutabilidad y caché — diagnóstico y plan de refactor

Marshalling, mutabilidad y caché en Fierro: diagnóstico y plan de refactor

Complementa Arquitectura. Referencias al código apuntan a develop en GitHub.


Parte 1 — El sistema de marshalling

1.1 Por qué existe

@mgaitan
mgaitan / androidcam
Last active April 2, 2026 21:43
androidcam: use an Android phone as a Linux webcam via scrcpy + v4l2loopback
#!/usr/bin/env bash
# Android phone as webcam for Linux via scrcpy + v4l2loopback.
#
# Initial setup recap:
# 1. Install build/runtime dependencies if needed:
# sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
# gcc git pkg-config meson ninja-build libsdl2-dev \
# libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
# libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \

AGENTS.md

Propósito

Este proyecto existe para probar consultas sobre Datos Abiertos de Argentina usando CKAN MCP con el menor nivel posible de alucinación.

La prioridad es:

  1. responder sólo con evidencia trazable a datasets y recursos concretos;
  2. distinguir claramente entre hechos observados, cómputos derivados e inferencias;
  3. rechazar o limitar respuestas cuando el portal no alcance para sostenerlas.
@mgaitan
mgaitan / benchmark.py
Created December 7, 2025 17:02
tl-parser vs pyquery vs bs4 with html5 and lxml parsers
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "tl-parser==0.7.11",
# "beautifulsoup4",
# "lxml",
# "pyquery",
# "matplotlib",
# ]
#
$ llm \
  --schema '{
    "type": "object",
    "properties": {
      "customer": {
        "type": "string",
        "description": "Nombre del cliente"
      },
      "items": {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.