Skip to content

Instantly share code, notes, and snippets.

View PrincipalsOffice's full-sized avatar

Jiang Ye PrincipalsOffice

View GitHub Profile
@MSylvia
MSylvia / convert_itermcolors.py
Created June 14, 2014 14:29
Convert .itermcolors file to html hex
#!/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