Created
April 28, 2017 03:37
-
-
Save matt-morris/75c84b09f4e1d0b970a7266c53b7ee2b to your computer and use it in GitHub Desktop.
An ASCII Art Quine in Ruby
This file contains hidden or 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
;;;def+;'@doubleEmms';end;;;class Quine;class<<self;def save;;;;;;;;;;;# | |
;;;;File.write('output.rb', File.read(__FILE__));end;end;end;require'pp';; | |
;;;; ;;;; | |
;;;; ;;;; | |
;;;; ;;;; | |
;;;; ;;;; | |
;;;; ;;;; | |
;;;; class XMYNETWZDz ;;;; | |
;;;; ;def foo;puts self.name#\. ;#;# | |
;;;; ;end;class VWXXy; ;#;# | |
;;;; end;class VWXXXy ;;;; | |
;;;; end;;; VX=p; #;#; | |
;;;; end;#/ #### | |
;;;; def z #### | |
;;;; end# .++VXWYWX#VXYVwvz+. #### | |
;;;; class XXXXXXXv;end;;;#++.. #;#; | |
;;;; class MXYXXVv;def XXYv;end;end;;#=+. ;;;; | |
;;;; def c; ( ) end;x=[]; ;;;; | |
;;;; ;x<<->{ (; p(''); ;) };c();#. ;;;; | |
;;;; x<<->{ (; p();; ;) };p; ;#;# | |
;;;; x<<->{ ( ) };p ;#;# | |
;;;; class MYXXVz;def xXYWXwv;end;p #### | |
;;;; p;;;;;;;;end;;;;;;;##+' ;#;# | |
;;;; ;#;# | |
;;;; ;#;# | |
;;;; ;;;; | |
;;;; ;;;; | |
;;;; ;;;; | |
;;;;$q=Quine.new;;;END{print(File.read(__FILE__));$q.class.send(:save)};#; | |
;;;p "npd/tnnffmcvpe00;tquui".reverse.chars.map{|c|(c.ord-1).chr}.join;# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment