Gist

getAllCombinations.cfm ( view on GitHub )