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
""" | |
Reproducible Cohorting for Experiments | |
""" | |
import hashlib | |
import logging | |
from typing import Dict, Optional, Tuple | |
import numpy as np | |
from pandas import DataFrame |
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/env python3 | |
# Author:: Justin Flannery (mailto:[email protected]) | |
""" | |
An Easy Script for Retrieving the Percent Through the Current Month | |
""" | |
from calendar import monthrange | |
from datetime import datetime |
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/env python3 | |
# Author:: Justin Flannery (mailto:[email protected]) | |
""" | |
State Machine Example. | |
""" | |
import logging | |
from enum import Enum |
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/env python | |
import logging | |
from os import environ | |
def logger(level="info", timestamp=True, filename=None, | |
custom_format=None, inherit_env=True): | |
""" | |
Default Logging Method. This takes multiple |
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/env python | |
from os import environ | |
from re import compile | |
from yaml import SafeLoader, load | |
def yml(path=None, data=None, tag=None): | |
""" |
NewerOlder