Skip to content

Instantly share code, notes, and snippets.

@LolWalid
Last active February 3, 2016 14:00
Show Gist options
  • Save LolWalid/844341a919c6187c7c3b to your computer and use it in GitHub Desktop.
Save LolWalid/844341a919c6187c7c3b to your computer and use it in GitHub Desktop.
Coloryze your terminal
def color_code
colors_code = %w(1;32 0;32 0;36 1;36 1;37 0;37 1;30 0;30 0;34 1;34 0;35 1;35 0;31 1;31 0;33 1;33)
colors_code.each do |color|
puts "#{color} : \033[#{color}m color \033[0;30m"
end
nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment