Email or username:

Password:

Forgot your password?
Top-level
ari :prideified:

Just ruby being sus:

irb(main):021> [(1...(not()).class.to_s.split(//).first.ord).sum].pack("U")
=> "ඞ"
1 comment
ari :prideified:

Sadly, ruby doesn't allow .chr on ints bigger than 255, which is why i had to use .pack()

irb(main):023> [(1...(not()).class.to_s.split(//).first.ord).sum].pack("U").ord
=> 3486
irb(main):024> [(1...(not()).class.to_s.split(//).first.ord).sum].pack("U").ord.chr
(irb):24:in `chr': 3486 out of char range (RangeError)
from (irb):24:in `<main>'
from /nix/store/vdgv5dakkng4mgyyk4xqh32z4mmy8gaw-ruby3.1-irb-1.12.0/lib/ruby/gems/3.1.0/gems/irb-1.12.0/exe/irb:9:in `<top (required)>'
from /nix/store/vdgv5dakkng4mgyyk4xqh32z4mmy8gaw-ruby3.1-irb-1.12.0/bin/irb:18:in `load'
from /nix/store/vdgv5dakkng4mgyyk4xqh32z4mmy8gaw-ruby3.1-irb-1.12.0/bin/irb:18:in `<main>'

Sadly, ruby doesn't allow .chr on ints bigger than 255, which is why i had to use .pack()

irb(main):023> [(1...(not()).class.to_s.split(//).first.ord).sum].pack("U").ord
=> 3486
irb(main):024> [(1...(not()).class.to_s.split(//).first.ord).sum].pack("U").ord.chr
(irb):24:in `chr': 3486 out of char range (RangeError)
from (irb):24:in `<main>'
from /nix/store/vdgv5dakkng4mgyyk4xqh32z4mmy8gaw-ruby3.1-irb-1.12.0/lib/ruby/gems/3.1.0/gems/irb-1.12.0/exe/irb:9:in `<top (required)>'
from /nix/store/vdgv5dakkng4mgyyk4xqh32z4mmy...
Go Up