This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import re | |
from collections import Counter | |
coords = { | |
'e': 2 + 0j, | |
'se': 1 - 1j, | |
'sw': -1 - 1j, | |
'w': -2 + 0j, |