Skip to content

Instantly share code, notes, and snippets.

@abznak
Created March 9, 2015 01:18
Show Gist options
  • Save abznak/72b3c36fb15c0de384c0 to your computer and use it in GitHub Desktop.
Save abznak/72b3c36fb15c0de384c0 to your computer and use it in GitHub Desktop.
she told him that she loved him
only she told him that she loved him
she only told him that she loved him
only she only told him that she loved him
she told only him that she loved him
only she told only him that she loved him
she only told only him that she loved him
only she only told only him that she loved him
she told him only that she loved him
only she told him only that she loved him
she only told him only that she loved him
only she only told him only that she loved him
she told only him only that she loved him
only she told only him only that she loved him
she only told only him only that she loved him
only she only told only him only that she loved him
she told him that only she loved him
only she told him that only she loved him
she only told him that only she loved him
only she only told him that only she loved him
she told only him that only she loved him
only she told only him that only she loved him
she only told only him that only she loved him
only she only told only him that only she loved him
she told him only that only she loved him
only she told him only that only she loved him
she only told him only that only she loved him
only she only told him only that only she loved him
she told only him only that only she loved him
only she told only him only that only she loved him
she only told only him only that only she loved him
only she only told only him only that only she loved him
she told him that she only loved him
only she told him that she only loved him
she only told him that she only loved him
only she only told him that she only loved him
she told only him that she only loved him
only she told only him that she only loved him
she only told only him that she only loved him
only she only told only him that she only loved him
she told him only that she only loved him
only she told him only that she only loved him
she only told him only that she only loved him
only she only told him only that she only loved him
she told only him only that she only loved him
only she told only him only that she only loved him
she only told only him only that she only loved him
only she only told only him only that she only loved him
she told him that only she only loved him
only she told him that only she only loved him
she only told him that only she only loved him
only she only told him that only she only loved him
she told only him that only she only loved him
only she told only him that only she only loved him
she only told only him that only she only loved him
only she only told only him that only she only loved him
she told him only that only she only loved him
only she told him only that only she only loved him
she only told him only that only she only loved him
only she only told him only that only she only loved him
she told only him only that only she only loved him
only she told only him only that only she only loved him
she only told only him only that only she only loved him
only she only told only him only that only she only loved him
she told him that she loved only him
only she told him that she loved only him
she only told him that she loved only him
only she only told him that she loved only him
she told only him that she loved only him
only she told only him that she loved only him
she only told only him that she loved only him
only she only told only him that she loved only him
she told him only that she loved only him
only she told him only that she loved only him
she only told him only that she loved only him
only she only told him only that she loved only him
she told only him only that she loved only him
only she told only him only that she loved only him
she only told only him only that she loved only him
only she only told only him only that she loved only him
she told him that only she loved only him
only she told him that only she loved only him
she only told him that only she loved only him
only she only told him that only she loved only him
she told only him that only she loved only him
only she told only him that only she loved only him
she only told only him that only she loved only him
only she only told only him that only she loved only him
she told him only that only she loved only him
only she told him only that only she loved only him
she only told him only that only she loved only him
only she only told him only that only she loved only him
she told only him only that only she loved only him
only she told only him only that only she loved only him
she only told only him only that only she loved only him
only she only told only him only that only she loved only him
she told him that she only loved only him
only she told him that she only loved only him
she only told him that she only loved only him
only she only told him that she only loved only him
she told only him that she only loved only him
only she told only him that she only loved only him
she only told only him that she only loved only him
only she only told only him that she only loved only him
she told him only that she only loved only him
only she told him only that she only loved only him
she only told him only that she only loved only him
only she only told him only that she only loved only him
she told only him only that she only loved only him
only she told only him only that she only loved only him
she only told only him only that she only loved only him
only she only told only him only that she only loved only him
she told him that only she only loved only him
only she told him that only she only loved only him
she only told him that only she only loved only him
only she only told him that only she only loved only him
she told only him that only she only loved only him
only she told only him that only she only loved only him
she only told only him that only she only loved only him
only she only told only him that only she only loved only him
she told him only that only she only loved only him
only she told him only that only she only loved only him
she only told him only that only she only loved only him
only she only told him only that only she only loved only him
she told only him only that only she only loved only him
only she told only him only that only she only loved only him
she only told only him only that only she only loved only him
only she only told only him only that only she only loved only him
@abznak
Copy link
Author

abznak commented Mar 9, 2015

words = %w(she told him that she loved him)
sens = []
for i in 0..(2 ** words.length)
        sen = []
        for j in 0..(words.length-1)
                if (i & (1 << j)) != 0 then
                        sen << 'only'
                end
                sen << words[j]
        end
        sens << sen.join(" ")
end
sens.each {|s| puts s}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment