Skip to content

Instantly share code, notes, and snippets.

View doekman's full-sized avatar

Doeke Zanstra doekman

View GitHub Profile
@doekman
doekman / json-pp.py
Last active October 5, 2020 18:29
Pretty Print JSON with a Twist
#!/usr/bin/env python3
# See blog article:
# https://blog.zanstra.com/2020/10/05/Pretty-printing-JSON-with-a-twist.html
import json, re, sys
def json_stringify(obj, indent=2):
if not isinstance(indent, str):
indent = ' ' * indent
@doekman
doekman / trello.css
Created February 4, 2021 08:57
Add this as user-defined stylesheet to your browser for use with https://trello.com
/*Trello rule*/
.card-label .label-text::after {
content: ' ⚪️'; /*clear label*/
}
.card-label-green .label-text::after {
content: ' 🟢';
}
.card-label-yellow .label-text::after {
content: ' 🟡';
}