Skip to content

Instantly share code, notes, and snippets.

@mborus
mborus / userchrome.css
Created April 11, 2026 09:11
Joplin userchrome.css to remove all styling
/* Remove all markdown styling in editor */
.cm-header,
.cm-strong,
.cm-em,
.cm-link,
.cm-quote,
.cm-variable-2,
.cm-meta,
.cm-tag {
font-weight: normal !important;
@mborus
mborus / gist:e14fd2daabe556c00c65adf6105db8a2
Created August 2, 2017 08:06
Conditional "with" context manager
"""
Python3 conditional locking example
"""
from threading import Lock
lock = Lock()
class ConditionalLock(object):
"""silly example to test locking via context manager"""