ruby code for basic programming language overview
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 19 Aug 2015 07:44:30 +0000 (09:44 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 19 Aug 2015 07:56:16 +0000 (09:56 +0200)
Inconsequential but thematic code (encodes and displays a Unicode entity)
written to include all braces (([{|}])), hash (#), and 0/O distinction.

Inspired by font comparison snippets at
<http://hivelogic.com/articles/top-10-programming-fonts>.

unicode.txt

index 2d14aab99bfbde08c9ae649130771925846bc8c4..4e4a360daab923240c910f77c6599897d1699d55 100644 (file)
@@ -9,6 +9,8 @@ Code:
 
   <html><pre><span class=""><!-- H&#x54;M --></span>
 
+  Hash[ :nbsp => 0O2_40 ].each {|name, cp| puts "#{name} is '#{cp.chr}'" }
+
 Mathematics and sciences:
 
   ∮ E⋅da = Q,  n → ∞, ∑ f(i) = ∏ g(i),      ⎧⎡⎛┌─────┐⎞⎤⎫