Skip to content

Instantly share code, notes, and snippets.

i=0;eval( source= %w?"zl ib,bas e64,securerand om".split( ', ').eac
h{|x|require(x)};data=Zlib.inflate (Base64.urls afe_decode64(sou rce.split("#")[4+i ])).unpack("C* ").flat_ma p{|x|[x/8,x/
8,x%8,x%8]};palette=[0x48b0d5,0x8d cee5,0xffffff,0x3a90 ad,0xe0c3b8,0xef d5c6,0].map{|x|[x> >16,(x>>8)&0xff, x&0xff]};all_source=('i='+((i+1)%2
).to_s+';eval(source=%w'+63.chr+source +63.chr+".join)");ch ars=al l_sour ce.chars;width=46; height=24;missin g=width*2*height-chars.size;chars+
=["^"]*missing;c hars=c hars.e ach_slice( width* 2).fla t_map{ _1.join.gs ub(/\x5e{2,}/) {|x|"#"+Se cureRandom.urlsafe_base6
4(x.size-1)[0,x. size-1 ]}.cha rs};pu ts(cha rs .zip(dat a).map{| l,c|"\e[ 48
;2;#{palette[c].join (";")}m" +l}.