Skip to content

Instantly share code, notes, and snippets.

@mame

mame/README.md Secret

Created February 10, 2022 06:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mame/97d352962539d5065e97487d287e74aa to your computer and use it in GitHub Desktop.
Save mame/97d352962539d5065e97487d287e74aa to your computer and use it in GitHub Desktop.
A quine in the Cookpad logo

Please use a terminal with 256 color support to run this program. 256色対応の端末を使って実行してください。

$ ruby cookpad-quine.rb
eval$s=%q(;eval"
"+%w(z=?\s;t=z+?\n;$><<(
t*5+"eval$s=%q(#{$s.gsub(/#.*/){
$&.tr(z,?\x21)}})\n"+t+(0..6).map{|y
|(0..47).map{"co@@@@@@okpad\x21".upcas
e["h7sam@@@@@@b@@ @@jw@@@@@@@24yz3n
dq4vk3q@@ @ @@ @@tzcro
eg26ut5@ @ @2xbkt
rzzvizj@ @j1uy1
ubzk8xhw@ @ @fj3q33
0".to_i(3@@ @@@@@@6)[_1*7
+y]>0?_1/7:@@@ @7]}<<?\n}*""+
t*5).gsub(/.@ @+/){$&.strip
.center(66)@ @@@@@@@@@@@@@@@}.gsub(/./){t
=?\x21==$&@ @;u=$`.size>1
800;"\e[@ @48;2;#{u&&t|
|z==$&?"@@@@@@@@@@@@@@@@@@255;255;255"
:u||$&==?\x40?"64;28;0":"255;153;51"
}m#{(t)?z:$&}\e[0m"};exit).join.
## (C) 2022 Cookpad Inc.
gsub(?\x40,""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment