Skip to content

Instantly share code, notes, and snippets.

@Liamb135
Liamb135 / userChrome.css
Last active October 11, 2018 15:08
MONOCHROMATIC CSS Skin for Firefox 57+
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*
MONOCHROMATIC
- First attempt at Firefox CSS
- By Liamb135
- With help from /r/FirefoxCSS
@Zearin
Zearin / python_decorator_guide.md
Last active November 6, 2025 16:16
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@mcleonard
mcleonard / vector.py
Last active October 22, 2024 12:31
A vector class in pure python.
import math
class Vector(object):
def __init__(self, *args):
""" Create a vector, example: v = Vector(1,2) """
if len(args)==0: self.values = (0,0)
else: self.values = args
def norm(self):
""" Returns the norm (length, magnitude) of the vector """