Skip to content

Instantly share code, notes, and snippets.

View doringeman's full-sized avatar

Dorin-Andrei Geman doringeman

  • Bucharest, Romania
  • 23:00 (UTC +03:00)
View GitHub Profile
@doringeman
doringeman / ghcompare
Created October 8, 2025 10:43
Generate GitHub compare URLs from Go module version changes # Usage: git diff go.mod | ghcompare [repo-filter]
#!/usr/bin/env bash
# ghcompare - Generate GitHub compare URLs from Go module version changes
# Usage: git diff go.mod | ghcompare [repo-filter]
ghcompare() {
local repo_filter="$1"
local input=$(cat)
# Build the grep pattern for repo filtering
local repo_pattern="github.com/"
#!/usr/bin/env python3
import re
from collections import Counter
coords = {
'e': 2 + 0j,
'se': 1 - 1j,
'sw': -1 - 1j,
'w': -2 + 0j,