Skip to content

Instantly share code, notes, and snippets.

@tylerkerr
Created April 30, 2017 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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