Last active
May 1, 2018 09:56
-
-
Save rummelonp/7ad8e7f3046626c9986279908f85612f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
puts ARGV.join(' ').codepoints.map { |cp| | |
if ('A'..'Z').flat_map(&:codepoints).include?(cp) | |
cp + '𝘼'.codepoints.first - 'A'.codepoints.first | |
elsif ('a'..'z').flat_map(&:codepoints).include?(cp) | |
cp + '𝗮'.codepoints.first - 'a'.codepoints.first | |
else | |
cp | |
end | |
}.pack('U*') |
Author
rummelonp
commented
May 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment