Skip to content

Instantly share code, notes, and snippets.

View atav32's full-sized avatar
🐝

Brian Zhang atav32

🐝
View GitHub Profile
@atav32
atav32 / convert_itermcolors.py
Last active February 18, 2024 01:38 — forked from MSylvia/convert_itermcolors.py
Convert .itermcolors file to html hex & rgb
#!/usr/bin/env python
#
# Convert .itermcolors files to hex colors for html
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb