Skip to content

Instantly share code, notes, and snippets.

@mame

mame/README.md Secret

Created Feb 10, 2022
Embed
What would you like to do?
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