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
| { | |
| "971":{ | |
| "code":"AFN", | |
| "name":"Afghani", | |
| "country":"AFGHANISTAN", | |
| "decimals":2, | |
| "symbol":"Af", | |
| "symbolNative":"؋", | |
| "majorSingle":"Afghani", | |
| "majorPlural":"Afghani", |
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
| from cProfile import Profile | |
| import pstats | |
| def profile(sort_args=['cumulative'], print_args=[10]): | |
| profiler = Profile() | |
| def decorator(fn): | |
| def inner(*args, **kwargs): | |
| result = None |
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
| def get_size(obj, seen=None): | |
| # From https://goshippo.com/blog/measure-real-size-any-python-object/ | |
| # Recursively finds size of objects | |
| size = sys.getsizeof(obj) | |
| if seen is None: | |
| seen = set() | |
| obj_id = id(obj) | |
| if obj_id in seen: | |
| return 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
| git log --graph --decorate --oneline --abbrev-commit --all |