Skip to content

Instantly share code, notes, and snippets.

@tylerkerr
Created April 30, 2017 18:05
Show Gist options
  • Save tylerkerr/6a1ce624f0edbb7f67f640d2006b955c to your computer and use it in GitHub Desktop.
Save tylerkerr/6a1ce624f0edbb7f67f640d2006b955c to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
joiners = ['', ' ', '.', '_', '-', '+', '!', ',', '~']
mains = ['main', 'Main', 'MAIN']
permutations = []
with open('owchars.txt', 'r') as f:
lines = f.read().splitlines()
for line in lines:
for join in joiners:
for main in mains:
permutations.append(line + join + main)
[print(perm) for perm in permutations]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment