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
| #!/usr/bin/python3 | |
| import re | |
| import argparse | |
| import os | |
| import json | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("path", help="path to a file to get macros from") | |
| parser.add_argument("-s", "--singleline", default=False, action="store_true", |
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
| #!/usr/bin/python3 | |
| from collections import defaultdict | |
| def get_vals_from_module(mod, sep='_'): | |
| return {k: getattr(mod, k) for k in dir(mod) if not k.startswith(sep) and sep in k} | |
| # TODO: make this work via stack (maybe?) | |
| def catagorize_enums(name_dict, sep='_'): |
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 configparser import ConfigParser | |
| from collections import defaultdict | |
| import re | |
| from io import StringIO | |
| def from_ini(a, **kw): | |
| conf = ConfigParser(**kw) | |
| conf.optionxform = str |
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 __future__ import print_function | |
| import pickle | |
| import os.path | |
| from googleapiclient.discovery import build | |
| from apiclient import errors | |
| from google_auth_oauthlib.flow import InstalledAppFlow | |
| from google.auth.transport.requests import Request | |
| import argparse | |
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 os | |
| import configparser | |
| import requests | |
| import json | |
| from pyclickup import ClickUp | |
| from collections import defaultdict | |
| import datetime | |
| from datetime import timedelta | |
| import dateparser |
NewerOlder