Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Last active May 1, 2018 09:56
Show Gist options
  • Save rummelonp/7ad8e7f3046626c9986279908f85612f to your computer and use it in GitHub Desktop.
Save rummelonp/7ad8e7f3046626c9986279908f85612f to your computer and use it in GitHub Desktop.
#!/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*')
@rummelonp
Copy link
Author

strong_zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment