This page printed from:
panoptic.com/rking/kid-combos
For Our King, Only
Recent Changes
/
Heat
/
Syntax
/
History
kid-combos
! Code (Just a scratch space so I can start analyzing again without having to redo this) ` KIDS = %w(ExclamationMark Theomatic Mirth Sparowe Basiliskos) KDS = %w(! Theomatic Mirth Sparowe Basiliskos) kids = KIDS.map &:downcase kds = KDS.map &:downcase combos = 2.upto(kids.size - 1).map { |n| kids.combination(n).to_a }.flatten(1) def ss a; Set.new(a.split //) end def charmap; ('a'..'z').each { |char| print char + ': '; KIDS.each { |k| k[/#{char}/] and print k + ', ' }; puts } end `
Password
Summary of changes
Erase cookies
/
Syntax
/
History
Last changed: 2012/08/10 23:39