This file contains 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 spotipy import Spotify | |
from spotipy.oauth2 import SpotifyOAuth | |
from yaml import full_load | |
if __name__ == "__main__": | |
with open("config.yaml", "r") as file: | |
config = full_load(file) | |
client_id = config["client_id"] | |
client_secret = config["client_secret"] |
This file contains 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
Creative Commons | |
Attribution 3.0 Unported | |
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL | |
SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT | |
RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. | |
CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND | |
DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM ITS USE. | |
License |
This file contains 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 math import ceil, floor | |
from itertools import product | |
def reset_cards(): | |
return [str(v + 2) for _, v in product(range(4), range(13))]'' | |
def continuedError(type, message): | |
try: |