Skip to content

Instantly share code, notes, and snippets.

View dharmapurebuddha's full-sized avatar

Dharma dharmapurebuddha

View GitHub Profile
@dharmapurebuddha
dharmapurebuddha / poem.py
Created March 30, 2022 00:08
A Python Poem
import math
import time
msg1 = 'I am a strange loop'
msg2 = 'I am a strange loop'
width = 25
def recurse(t):
@dharmapurebuddha
dharmapurebuddha / server.py
Created March 18, 2022 15:02
Rich pretty logging and tracebacks for Sanic webserver in Python
import sanic
import sanic_cors
app = sanic.Sanic(__name__, log_config={
'version': 1,
'disable_existing_loggers': False,
'loggers': {
"sanic.root": {
"level": "INFO",
@dharmapurebuddha
dharmapurebuddha / filters.txt
Last active December 7, 2021 02:58
Adblock Plus Filters
youtube.com##ytd-browse[page-subtype="home"]
youtube.com##.html5-endscreen
youtube.com##.ytp-ce-element
youtube.com##.ytp-ce-covering-overlay
youtube.com##.ytp-ce-element-shadow
youtube.com##.ytp-ce-covering-image
youtube.com##.ytp-ce-expanding-image
youtube.com##.ytp-ce-element.ytp-ce-video.ytp-ce-element-show
youtube.com##.ytp-ce-element.ytp-ce-channel.ytp-ce-channel-this
youtube.com##.ytp-pause-overlay