Skip to content

Instantly share code, notes, and snippets.

View ivarref's full-sized avatar

Ivar Refsdal ivarref

View GitHub Profile
#!/usr/bin/env -S python3 -u
import csv
import datetime
import glob
import gzip
import json
import os
import sys
import time
import hashlib
#!/usr/bin/env python
import random
import sys
def hex_strs_to_ansi(hex_strs):
assert isinstance(hex_strs, list)
res = []
for col in hex_strs: