𓃠 on Nostr: /run rb list = {} for num in 1..10000 do key = "アツコヒ".chars.shuffle.join ...
/run rb
list = {}
for num in 1..10000 do
key = "アツコヒ".chars.shuffle.join
list[key] = list[key].to_i + 1;
end
list.sort_by {|k, v| -v}.each do |v|
puts "#{v[0]} #{v[1]}"
end
Published at
2024-10-30 00:11:03Event JSON
{
"id": "58a7b42751e55cfb8ca1b411cffef84869fc58a21c4f87e6d23a27c1e345d98d",
"pubkey": "b707d6be7fd9cc9e1aee83e81c3994156cfcf74ded5b09111930fdeeeb5a0c20",
"created_at": 1730247063,
"kind": 1,
"tags": [
[
"e",
"251a9f035247c2386e599522855eaec76c160af1b54133f453f524dcf779cf77"
],
[
"e",
"f559cd899dbe9d1eefcd170c5301cfe3796f476c745ebb89d74282f12d7674e9",
"",
"reply"
],
[
"p",
"1f2787b72797d6be8d32a0bb993c19e698765fd5aeb66c3e788570693c045d87"
],
[
"p",
"1a35b54ef7752af54cacbeedf0f349e320f0a2ee50142883134c3ee31879ce71"
]
],
"content": "/run rb\nlist = {}\nfor num in 1..10000 do\n key = \"アツコヒ\".chars.shuffle.join\n list[key] = list[key].to_i + 1;\nend\nlist.sort_by {|k, v| -v}.each do |v|\n puts \"#{v[0]} #{v[1]}\"\nend",
"sig": "df7aac8e1b414a62c46888930fa7c8f26a2369ce241e3a27cc46b6ef466075e9b9ee9ca827467223332e7be2be381ddf872cc9597cbc05569ac4b879df6eae3c"
}