Skip to content

Instantly share code, notes, and snippets.

View alt-glitch's full-sized avatar
👨‍💻
looking at a screen

Siddharth Balyan alt-glitch

👨‍💻
looking at a screen
View GitHub Profile
# Writing High-Quality Software Documentation with MDX
**A practical guide for developers and AI assistants**
Good documentation can make the difference between a successful software project and one that struggles to find or keep users. When technical users can’t figure out how to use your product, they won’t remain users—no matter how amazing the software is (@Don't Skimp on Documentation | Twilio). Poor docs don’t just frustrate readers; they create “operational debt” in the form of support burdens and lost adoption (@Don't Skimp on Documentation | Twilio). In fact, bad or missing documentation often *feel* the same to a user (@Good Docs Take Great Effort | er4hn), wasting their time and forcing them to ask maintainers basic questions. On the other hand, great documentation empowers users to get started quickly and solve problems on their own (@Good Docs Take Great Effort | er4hn). This guide will cover documentation philosophy, types of docs (per the Diátaxis framework), writing style tips, formatting a
import argparse
import subprocess
from pathlib import Path
import cv2
import numpy as np
def motion_extract(
video_path,
@alt-glitch
alt-glitch / crtsh.py
Created November 17, 2022 09:30
Sample script to query crt.sh for certificate transparency log data.
import psycopg2
class CertificateTransparencyLog:
def __init__(self, base) -> None:
self.conn = psycopg2.connect(
host="crt.sh",
database="certwatch",
user="guest",
port="5432"