Skip to content

Instantly share code, notes, and snippets.

@azizshamim
Last active April 18, 2016 21:59
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 azizshamim/0af6fcfdca600ed5da7d22c79918c080 to your computer and use it in GitHub Desktop.
Save azizshamim/0af6fcfdca600ed5da7d22c79918c080 to your computer and use it in GitHub Desktop.

HTML Entity codes

  • ▓
  • ▓
  • ▓

░░░░

▓▓▒░

░░░░

▓▓▒░

░░░░

▓▓▒░

ASCII direct in markdown file. for use in code blocks

▓▓▒░

▓▓▓▓▓▓▒▒▒▒░

▓▓▓▓▓▓▓▓▒░░░░

▓▓▓▓▓▓▓▓▓▒░

▓
▓▓▒░
▓▓▓▓▓▓▒▒▒▒░
▓▓▓▓▓▓▓▓▒░░░░
▓▓▓▓▓▓▓▓▓▒░

In Ruby

irb(main):004:0> 9619.chr(Encoding::UTF_8)
=> "▓"
irb(main):005:0> 9618.chr(Encoding::UTF_8)
=> "▒"
irb(main):006:0> 9617.chr(Encoding::UTF_8)
=> "░"

In Bash

$ echo -e "\xe2\x96\x93"
▓
$ echo -e "\xe2\x96\x92"
▒
$ echo -e "\xe2\x96\x91"
░

Desired output

cat <<EOF
Element1 10 5 1
Element2 8 2 0
EOF | histogram
Element1 ▓▓▓▓▓▓▓▓▓▓▒▒▒▒▒░
Element1 ▓▓▓▓▓▓▓▓▒▒
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment