Skip to content

Instantly share code, notes, and snippets.

View capjamesg's full-sized avatar
writing words and code

James capjamesg

writing words and code
View GitHub Profile
import re
def autotag(match):
tag = match.groups()[0]
return f"<a href={tag}>{tag}</a>"
def autopersontag(match):
person = match.groups()[0]
import re
note = "I am presently having coffee with @example. #coffee #lunch #breakfast" #* 10000
person_tags_reference = {
"example": ("Example Person", ""),
tags = ["coffee", "lunch", "breakfast"]
rogerallen /
Last active June 18, 2024 01:27
A Python Dictionary to translate US States to Two letter codes
# United States of America Python Dictionary to translate States,
# Districts & Territories to Two-Letter codes and vice versa.
# Canonical URL:
# Dedicated to the public domain. To the extent possible under law,
# Roger Allen has waived all copyright and related or neighboring
# rights to this code. Data originally from Wikipedia at the url: