This file contains 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
from itertools import permutations | |
import aspell | |
def unscramble(word,max_print_length=25,lang="de_DE"): | |
word_permutations = [''.join(p) for p in permutations(word)] | |
word_permutations = set(word_permutations) | |
number_permutations = len(word_permutations) | |
print("There are",number_permutations,"permutations of your input.") |
This file contains 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
#!/bin/bash | |
# For the ultimate convenience configure your system to launch this script with | |
# a shortcut, e.g. Super + L | |
# e.g. for gnome-terminal: | |
# gnome-terminal -e "bash -c 'export PATH=$PATH:/path/to/launcher.sh ; launcher.sh'" | |
# Explanation text for this launcher (enter help during execution) | |
function help | |
{ |