Skip to content

Instantly share code, notes, and snippets.

@calvinfroedge
Created August 9, 2014 21:08
Show Gist options
  • Save calvinfroedge/5a3a1f4da28c23909c85 to your computer and use it in GitHub Desktop.
Save calvinfroedge/5a3a1f4da28c23909c85 to your computer and use it in GitHub Desktop.
Domain ideas
import itertools
groups = [
['wordlist1'],
['wordlist2']
]
combos = list(itertools.product(*groups))
combined = map(lambda x: "".join(x), map(list, combos))
def sub_divide(l, n):
i = 0
new = []
while(i < len(l)):
new.append(l[i:i+n])
i = i + n
return new
for x in sub_divide(combined, 50):
print "\n".join(x)
print "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment