Skip to content

Instantly share code, notes, and snippets.

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.")
@tangboshi
tangboshi / launcher.sh
Last active March 23, 2020 14:14
Convenient game launcher for Linux
#!/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
{