Skip to content

Instantly share code, notes, and snippets.

View dyspop's full-sized avatar
🇹🇭
SaaSy

Dan Black dyspop

🇹🇭
SaaSy
View GitHub Profile
@dyspop
dyspop / pull_set_info.py
Created May 12, 2019 02:50
Download mtg set data
import json
import requests
# Ask the user for the set abbreviation.
setabbrv = input("What's the abbreviation of the set?\n")
# Define the URL to look it up from
lookupobject = "https://api.scryfall.com/cards/search?order=name&q=set:" + setabbrv
# Make a get request and convert the json response to a dictionary
resp = json.loads(requests.get(lookupobject).text)
@dyspop
dyspop / fix_shutterstock_editorial_onboarding_t2_best.txt
Last active June 10, 2019 20:43
Fix the DCM modules and display for this first round of DCM in production
shutterstock_header_core_center
hero_copy
text_paragraph_center-1
feature_right-1
feature_left-1
<#if SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY='US' || SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY = 'GB' || SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY = 'DE' >text_paragraph_center-2</#if>
<#if SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY='US' || SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY = 'GB'>feature_right-2</#if>
<#if SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY='US' || SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY = 'GB' || SHUTTERSTOCK_IMG_MUSIC_FOOTAGE_EDITORAL_PET.COUNTRY = 'DE' >feature_left-2</#if>
text_paragraph_center-3
shutterstock_marketing_footer_inverse
""" Tic tac toe code exercise with dataclasses.
Usage:
import tictactoe as ttt
game = ttt.Game()
game.make_move(x, y)
"""

Keybase proof

I hereby claim:

  • I am dyspop on github.
  • I am danblack (https://keybase.io/danblack) on keybase.
  • I have a public key ASCJnHihWA0wrXdnJQ0MwSBUWIgHkpAY0HAErhpgl6VE1Ao

To claim this, I am signing this object: