Created
August 9, 2014 21:08
-
-
Save calvinfroedge/5a3a1f4da28c23909c85 to your computer and use it in GitHub Desktop.
Domain ideas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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