Skip to content

Instantly share code, notes, and snippets.

@mmcdaris
Last active August 29, 2015 13:56
Show Gist options
  • Save mmcdaris/8831271 to your computer and use it in GitHub Desktop.
Save mmcdaris/8831271 to your computer and use it in GitHub Desktop.
show me the colors!
colors = []
(20..130).each do |num|
colors << "\033[#{num}m#{num} \033[0m"
end
colors.each_slice(10).each { |ar| ar.map {|c| print c }; puts "\n" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment