Skip to content

Instantly share code, notes, and snippets.

jastrauss

Block or report user

Report or block jastrauss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TSP_FreeCards.py
# 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
You can’t perform that action at this time.