-
-
Save mickstevens/e7a59680b9bc9a043bc34de5819b5f5f to your computer and use it in GitHub Desktop.
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
# Sample code from TheSimplePostcard.com | |
# TechStack: Django, PostgreSQL, VQL, Twilio, Lob, Stripe, Bootstrap, usaddress | |
# Occasionally, we choose to ship a card for free | |
import datetime, random | |
def FreeCard(): | |
die_1 = random.randint(1, 6) | |
die_2 = random.randint(1, 6) | |
current_month = datetime.datetime.now().month | |
return (die_1 + die_2) == current_month | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment