What is Nostr?
darashi
npub1q7q…wt9c
2024-10-31 10:34:10

darashi on Nostr: /run rb def rotate(c) c.sub(/ー/, "|") end def cross(str) s = str.chars l = ...

/run rb
def rotate(c)
c.sub(/ー/, "|")
end

def cross(str)
s = str.chars
l = s.length

pad = " " * (l - 1)

s[...-1].each do |c|
puts pad + rotate(c)
end
puts (s + s[...-1].reverse).join
s[...-1].reverse.each do |c|
puts pad + rotate(c)
end
end

cross "ハロウィーン🎃"
Author Public Key
npub1q7qyk7rvdga5qzmmyrvmlj29qd0n45snmfuhkrzsj4rk0sm4c4psvqwt9c