darashi on Nostr: /run rb freqs = 10000.times.map { "アツコヒ".chars.shuffle.join ...
/run rb
freqs = 10000.times.map { "アツコヒ".chars.shuffle.join }.each_with_object(Hash.new(0)) {|s, h| h[s] += 1 }
freqs.sort_by {|k, v| -v}.each do |v|
puts v.join(" ")
end
Published at
2024-10-30 00:41:45Event JSON
{
"id": "b7c6e284a13d49c4470f3f87b28bc5f436b0581dbd3f6221e5ec0e875eb16a74",
"pubkey": "07804b786c6a3b400b7b20d9bfc945035f3ad213da797b0c50954767c375c543",
"created_at": 1730248905,
"kind": 1,
"tags": [],
"content": "/run rb\nfreqs = 10000.times.map { \"アツコヒ\".chars.shuffle.join }.each_with_object(Hash.new(0)) {|s, h| h[s] += 1 } \nfreqs.sort_by {|k, v| -v}.each do |v|\n puts v.join(\" \")\nend",
"sig": "4a266c98e24e1d11d24c472d6d16a3a1ae7734b1c6c55d648132bf35dc660f3aa82a2dcc0ac62ae32d75954b7100b50952d59906162c05bee662846053432f66"
}