Skip to content

Instantly share code, notes, and snippets.

@sinistamunkey
Last active June 10, 2021 07:55
Show Gist options
  • Save sinistamunkey/3320677a76bac74d9d5ba6373194a262 to your computer and use it in GitHub Desktop.
Save sinistamunkey/3320677a76bac74d9d5ba6373194a262 to your computer and use it in GitHub Desktop.
Craig David schedule generator
#!/usr/bin/env python
from datetime import datetime
class CraigDavid(object):
def __call__(self, day):
day = day.lower() if day else ''
if day == 'monday':
return 'met this girl'
if day == 'tuesday':
return 'took her for a drink'
if day in ['wednesday', 'thursday', 'friday', 'saturday',]:
return 'making love'
if day == 'sunday':
return 'chilling'
person = CraigDavid()
print person(datetime.now().strftime('%A'))
@rich-airfinity
Copy link

no tests?

@DazEdword
Copy link

Met this.girl.

@mikkilj
Copy link

mikkilj commented Nov 20, 2019

took her for a drink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment