Created
May 6, 2011 04:01
-
-
Save zaeleus/958434 to your computer and use it in GitHub Desktop.
Ole Miss ACM t-shirt design in Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def a(m );print (m); end; | |
require 'zlib' ;eval(%w(c ='#'; s=32. | |
chr;f="\n"; j=4;i= [25, 20,14,8,3,3,j,j,5 | |
,5,6];a (s*3 0+c*4+ s*11+c*4+f);p=-1 | |
;[28 ,38, 50 ,62 ,72].each{|n|a(s *i[ | |
p+=1 ]+c *n +f) ;}; w=['c 1bxji 7',' 9ixq z9b' | |
,'7k 1eptf', '76 zemy2' ,'qoi m0x'] .map {|g| g.to_ i(36) | |
.to_ s(2) };[2,3 ]. eac h{|h |w[h ]='0 '+w[ h]};w[ 4]=('0 | |
'*4) +w[4 ];w=w .jo in. char s.ma p{|z |(z. to_ i==1 )?c :s} | |
.joi n;p= 19.5 ;w.cha rs.e ach_ slic e(35 ){| o|p- =0. 5;a (s | |
*i[j+ =1]+c *p+o .join +c *(p- 1)+f );};a(s*i[j+=1]+c*66 +f);p=-1; [' | |
ghbgfdf cfadhb h','h del bbbd bbbcbc bged'] .map{|u |u.unpac | |
k('c*')}.eac h{|a|a.each {|b|( (p+=1)&1 ==0)?a(s* | |
(b-96)):a(c*(b-9 6));};a(f);};q= "U1BAA8oQAOfBRSAsBAECXOi6FZCU | |
KiO0w1 nEaUfY rozEwNAOAA==\n".u npack(' m')[0];p uts(Zl | |
ib::I nflate .new(- Zlib:: MAX_WB ITS). | |
inflate(q)); 13.ti mes{a( s*17+c *45+f | |
)};a(f);['Lb.qnj t,.V. urneq .lbh. yvxr. | |
g-fuve gf',' fb.V. chg.n a.NPZ .fuve | |
g.ba. lbhe.N PZ.fuv eg','f b.lbh .pna. jrne. | |
n.fuve g.juvyr. jrnevat.n.fuveg'] .each {|t|a (t.tr | |
('A-Za-z',' N-ZA -Mn-za-m').gsub ('.', s).ce nter( | |
80)+f) };). join)#chun kyBac on#MM #2011 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment