Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #27 from sanderhahn/master

EuRuKo ascii logo
  • Loading branch information...
commit afa442132dfbcd895d3a5802133cdc099cfaedc5 2 parents efbbb16 + 1071109
Patrick phuesler authored
Showing with 23 additions and 0 deletions.
  1. +12 −0 logo-fail.rb
  2. +11 −0 logo.rb
12 logo-fail.rb
View
@@ -0,0 +1,12 @@
+# encoding: UTF-8
+# Nicer, but too long for a tweet...
+f='䄀߿㯛ᗃ៾ᬃ㗘ᷜᵣ㕾σ뤘഼௧䇷謀ᄒ⌄ᅕᅀᄖ燨Б唑䀑ᯁ팉ᆪᆐ'.unpack('U29');7.downto(0).each{|y|;l='';f[16,13].each{|x|[x>>12,x>>8,x>>4,x].each{|c|l+=((f[y+(((f[c&15]&255)>>y-3)&8)]>>9)+32).chr}};puts l}
+# eeeeee.eee..eee.eeeeeee..eee..eee.eee..eee..eeeeee..
+# @@@@@@:@@@::@@@:@@@@@@@@:@@@::@@@:@@@::@@@:@@@@@@@@:
+# %%%----%%%--%%%-%%%--%%%-%%%--%%%-%%%-%%%--%%%--%%%-
+# &&&&&++&&&++&&&+&&&&&&&++&&&++&&&+&&&&&&+++&&&++&&&+
+# |||||**|||**|||*||||||***|||**|||*||||||***|||**|||*
+# !!!====!!!==!!!=!!!=!!!==!!!==!!!=!!!=!!!==!!!==!!!=
+# ::::::#::::::::#:::##:::#::::::::#:::##:::#::::::::#
+# ......@@......@@...@@...@@......@@...@@...@@......@@
+puts "\nDoesn't fit tweet: FAIL!"
11 logo.rb
View
@@ -0,0 +1,11 @@
+# encoding: UTF-8
+# Tweet: https://twitter.com/#!/sanderhahn/status/204579802735321088
+puts'姷峾櫮櫼巜觽膹藸虳籷峮櫣蟎趜觱膏画詳緇尸櫮蟎覜蛽趹藻畿燳諧巎櫼'.unpack('U31').reduce(0){|v,b|(v<<14)+(b-0x4e00)}.to_s(2).gsub(/.(.{53})/,"\\1\n").gsub('0',' ')#EuRuKo
+# 111111 111 111 1111111 111 111 111 111 111111
+# 111111 111 111 11111111 111 111 111 111 11111111
+# 111 111 111 111 111 111 111 111 111 111 111
+# 11111 111 111 1111111 111 111 111111 111 111
+# 11111 111 111 111111 111 111 111111 111 111
+# 111 111 111 111 111 111 111 111 111 111 111
+# 111111 11111111 111 111 11111111 111 111 11111111
+# 111111 111111 111 111 111111 111 111 111111
Please sign in to comment.
Something went wrong with that request. Please try again.