Skip to content

Instantly share code, notes, and snippets.

@Aupajo
Last active August 3, 2017 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aupajo/523845154c905355bb008646bc066f18 to your computer and use it in GitHub Desktop.
Save Aupajo/523845154c905355bb008646bc066f18 to your computer and use it in GitHub Desktop.

box-text

Install with:

curl https://gist.githubusercontent.com/Aupajo/523845154c905355bb008646bc066f18/raw/a4d191aad9f189fbc76111f9c4ee08c3b9e08f35/box-text > /usr/local/bin/box-text && \
chmod u+x /usr/local/bin/box-text

Usage:

$ box-text get to the choppa
πŸ‡¬ πŸ‡ͺ πŸ‡Ή  πŸ‡Ή πŸ‡΄  πŸ‡Ή πŸ‡­ πŸ‡ͺ  πŸ‡¨ πŸ‡­ πŸ‡΄ πŸ‡΅ πŸ‡΅ πŸ‡¦
#!/usr/bin/env ruby
input = ARGV.join(' ')
spaced_text = input.upcase.gsub(/[A-Z]/) { |char| "#{char} " }
puts spaced_text.tr('A-Z', 'πŸ‡¦-πŸ‡Ώ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment