This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from matplotlib.patches import Circle | |
import matplotlib.pyplot as plt | |
import numpy as np | |
ts = np.linspace(-1.25, 1.25, 500) | |
dt = ts[1] - ts[0] | |
x = np.poly1d([1, 0]) | |
y = np.poly1d([0.1, -0.5, 0.2, 1, -1, 0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from datetime import datetime | |
import difflib | |
from functools import partial | |
import logging | |
import os.path | |
import requests | |
import time | |
parser = argparse.ArgumentParser() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Collection of all __dunder__ attributes/methods and functionality for creating a class that intercepts all __dunder__ methods. | |
Example usage: | |
$ python -i dunder.py | |
>>> T = create_intercept_class() | |
>>> T() | |
__new__: args=(), kwargs={} | |
__init__: args=(), kwargs={} | |
__repr__: args=(), kwargs={} |