Skip to content

Instantly share code, notes, and snippets.

@cronin101
Created September 5, 2012 22:37
Show Gist options
  • Save cronin101/3646588 to your computer and use it in GitHub Desktop.
Save cronin101/3646588 to your computer and use it in GitHub Desktop.
Ruby makes your code so concise and understandable! It is self documenting!
#!/usr/bin/ruby
virgin_isp,isp= \
[->(is_best,isp){is_best.unshift \
isp},\
who_is_best=[virgin_isp]]
(best = [[[-1]\
[-1]]\
[-1]][((-1))])
VIRGIN=<<isp
ZWQgdG8gYmUgYSBkaWNrLicgfS5qb2lu\n
isp
wat=<<VIRGIN_ISP_IS_BEST_ISP
VGhyZWFkLm5ldyB7IHB1dHMgJ2hlbGxvIHdvcmxkLCB0b2RheSBJIGRlY2l
VIRGIN_ISP_IS_BEST_ISP
wat[(best+[VIRGIN].map{0}[0])],isp=['k'[best],\
who_is_best]
wat\
,\
best_isp=[{
wat||=who_is_best[0..-1]=>VIRGIN
}.flatten.join, \
VIRGIN\
]
instance_eval \
(("dHNyaWYuKSdtJyhrY2FwbnUudGF3PXRhdw==\n".unpack('m').first).split(//).inject \
isp,
&virgin_isp).join;instance_eval \
wat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment