Instantly share code, notes, and snippets.

Embed
What would you like to do?
Builder of CAMPHOR- LOGO Quine
eval $s=%w(
s = %(eval$s=%w(#{$s})*"");
bitmap="10qhq35t4sngfv3emvm45wp24mq4c8eyk12wiblhr85h5a6m3jngv6j1iz7dohhbzl2gdk8qe801jmbg070z3yn60nbx6fpld5odcrr9izg8d81kgvs0ta4kmvudmens7wpyxm5pdigtmry0xxringsirqwudjizcv7lex3pr9pvqcxr67lln8he73ks0m8ieu8q5nmpu02d40x94fwbp1zywga8uodieaptltwjbgo0zuez1l90j7lhp8pufir8rnv965w7m7a1n6rjqgjzmj3n53bthfr5xthmofqpo9jtkmg1zngzq9y071lm1gwssnt2htwk0h5x6a4eekp6v3u08lfxy2jl4x37tnkri2li3cdby1wuo5to2yhmm240y4ex8eo7bxiye4iv9rx82piz169vmy2egxcv1vprv69idmsj67yqfbag5o9ieza9jvvoqwtrwa5l5s9smbup6jxxd54buhip7ym490racs5n69yd6b2htlisqvarif85716ic4ezp1gby3wsxxnqkwiqs7juoq2hxrbhjpmur2pl08cbin2g16oib1oh785hfqoau05dkn0fzgc2ochv3ely3jtjvyllsrjsi7fktizgpvyw0xvra1dn77edqx5xp1np9h6rdpya5iwspwl9cs179gui6g6xnmlnsrd3ixp9bapnii182ky47rso25ysbq4kohtfxhl9yko9ox0963xyjc677kyt8xpep9e2kr54q4jiakl0lwe0pxxnuy4mse0an7f6cqnzenllsktrnhmhe4igwkp2ay2af1mpi4wekkqayknhidg2nwc2lkvjaxsssxaypaxu31u8lhlnze68ot0rm049joqocwxozf230wqgojqxyhckd0qzklt76v2mgqyz9t3uvzcjdiloqprloheqefusf9zyltsbclqimohacoe6a892cy5roq3ijcc49j53qjfx10jx9frehq5iwqd7owbwztd4k1nbdqlm8cq92exm7shwhk0a9m0uqlkra4dj87j1fp5t85c07ujqjqkls2iajic7zglwozcjn1xdahobos8obohsixa7z";
XSIZE=131;
YSIZE=43;
idx = -1;
YSIZE.times { |y|
puts((0..XSIZE-1).map{|x| (bitmap.to_i(36)[x + y * XSIZE] == 1) ? (idx += 1; s[idx]) : (32.chr);} * "");
}
)*""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment