import re


def to_camel_case(snake_case):
    """Turn `snake_case_name` or `slug-name` into `CamelCaseName`."""
    name = ""
    for word in re.split(r"[-_]", snake_case):
        name += word.title()

    return name