Skip to content

Instantly share code, notes, and snippets.

@vnznznz
Last active August 29, 2015 14:17
Show Gist options
  • Save vnznznz/6c8765a932ef714ba6c4 to your computer and use it in GitHub Desktop.
Save vnznznz/6c8765a932ef714ba6c4 to your computer and use it in GitHub Desktop.
Generate a funny job title from your name
adjectives = {
'A': 'International',
'B': 'Coporate',
'C': 'National',
'D': 'Lead',
'E': 'Executive',
'F': 'Acting',
'G': 'District',
'H': 'Internal',
'I': 'Central',
'J': 'Senior',
'K': 'Homeless',
'L': 'Vice',
'M': 'Principal',
'N': 'Team',
'O': 'Dynamic',
'P': 'Global',
'Q': 'First',
'R': 'Senior',
'S': 'External',
'T': 'Dynamic',
'U': 'Primary',
'V': 'International',
'W': 'Second',
'X': 'Executive',
'Y': 'Junior',
'Z': 'Useless'
}
positions = {
'A': 'Clerk for',
'B': 'Chief of',
'C': 'Engineer for',
'D': 'Head of',
'E': 'Deputy for',
'F': 'Consultant for',
'G': 'Administrator of',
'H': 'Director of',
'I': 'Developer of',
'J': 'Consultant for',
'K': 'Supervisor of',
'L': 'Architect of',
'M': 'Designer of',
'N': 'Planner of',
'O': 'Chief of',
'P': 'Agent of',
'Q': 'Manager of',
'R': 'Director of',
'S': 'Administrator of',
'T': 'Trainee for',
'U': 'Accountant for',
'V': 'Officer for',
'W': 'Associate for',
'X': 'Jerk of',
'Y': 'Head of',
'Z': 'Consultant for'
}
fields = {
1: 'Creative Solutions',
2: 'Coffee Concepts',
3: 'Visionary Networking',
4: 'Sexy Development',
5: 'Content Synergies',
6: 'Viral Enterprises',
7: 'Project Resources',
8: 'Sales Technologies',
9: 'Creative Recruiting',
10: 'Inhouse Operations',
11: 'Intergalactic Jobs',
12: 'Data Whatever',
13: 'Some Creative Stuff',
14: 'Office Tactics',
15: 'Virtual Management',
16: 'RealTime Drinking',
17: 'Project Markets',
18: 'Web Relationships',
19: 'NextGen Innovations',
20: 'Financial Things',
21: 'B2B Implementation',
22: 'Coffee Benchmarking',
23: 'Hypnotic Operations',
24: 'Bullshit Controlling',
25: 'Playing Solitaire',
26: 'Information Branding',
27: 'Sexy Networking',
28: 'Inhouse Detonation',
29: 'Export Resources',
30: 'Mindblowing Stuff',
31: 'Sales Solutions'
}
def do_it(given_name, last_name):
assert isinstance(given_name, str) and len(given_name) > 0
assert isinstance(last_name, str) and len(last_name) > 0
import random
return "{0} {1} {2}".format(adjectives[given_name.upper()[0]],
positions[last_name.upper()[-1]],
random.choice(list(fields.values())))
def example():
given_name = "Furios"
last_name = "Bar"
monthday_of_birthday = 12
print("{0} {1}, 1986-03-{2}".format(given_name, last_name))
print("=======================")
print(do_it(given_name, last_name, monthday_of_birthday))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment