Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# be very careful with newlines, too me a long time to find all the inserted newlines
# all the commands and strip them out.
# echo "======================="
# echo "generate long string for challenge"
# echo "======================="
# "code_verifier must contain only: alphanumeric, '-', '.', '_', '~'",
# code_verify must be between 43 and 128 characters
def objectproperty(func):
"""Alternate version of the standard ``@property`` decorator,
useful for proeperties that expose setter (or deleter) in addition to getter.
It allows to contain all two/three functions and prevent PEP8 warnings
about redefinion of ``x`` when using ``@x.setter`` or ``@x.deleter``.
Usage::