Created
August 13, 2015 11:16
-
-
Save rococodogs/c147a88939c91e135b63 to your computer and use it in GitHub Desktop.
cat server - displays an ascii cat on request
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
| module.exports = [ | |
| '', | |
| ' ________________', | |
| ' | |_____ __', | |
| ' | I Love You! | |__| |_________', | |
| ' |________________| |::| | /', | |
| ' /\\**/\\ | \\.____|::|__| <', | |
| ' ( o_o )_ | \\::/ \\._______\\', | |
| ' (u--u \\_) |', | |
| ' (||___ )==\\', | |
| ' ,dP"/b/=( /P"/b\\', | |
| ' |8 || 8\=== || 8', | |
| ' `b, ,P `b, ,P', | |
| ' """` """`\'', | |
| '' | |
| ].join('\n') |
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
| module.exports = [ | |
| '', | |
| ' /^--^\\ /^--^\\ /^--^\\', | |
| ' \\____/ \\____/ \\____/', | |
| ' / \\ / \\ / \\', | |
| ' | | | | | |', | |
| ' \\__ __/ \\__ __/ \\__ __/', | |
| '|^|^|^|^|^|^|^|^|^|^|^|^\\ \\^|^|^|^/ /^|^|^|^|^\\ \\^|^|^|^|^|^|^|^|^|^|^|^|', | |
| '| | | | | | | | | | | | |\\ \\| | |/ /| | | | | | \\ \\ | | | | | | | | | | |', | |
| '########################/ /######\\ \\###########/ /#######################', | |
| '| | | | | | | | | | | | \\/| | | | \\/| | | | | |\\/ | | | | | | | | | | | |', | |
| '|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|', | |
| '' | |
| ].join('\n') |
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
| module.exports = [ | |
| " . ,.", | |
| ' T."-._..---.._,-"/|', | |
| ' l|"-. _.v._ (" |', | |
| " [l /.\\'_ \\; _~\"-.`-t", | |
| ' Y " _(o} _{o)._ ^.|', | |
| " j T ,-<v>-. T ]", | |
| " \\ l ( /-^-\\ ) ! !", | |
| ' \\. \\. "~" ./ /c-..,__', | |
| ' ^r- .._ .- .-" `- . ~"--.', | |
| " > \\. \\", | |
| " ] ^. \\", | |
| ' 3 . "> . Y', | |
| " ,.__.--._ _j \\ ~ . ; |", | |
| ' ( ~"-._~"^._\\ ^. ^._ I . l', | |
| ' "-._ ___ ~"-,_7 .Z-._ 7" Y ; \\ _', | |
| ' /" "~-(r r _/_--._~-/ / /,.--^-._ / Y', | |
| ' "-._ \'"~~~>-._~]>--^---./____,.^~ ^.^ !', | |
| " ~--._ ' Y---. \\./", | |
| " ~~--._ l_ ) \\", | |
| " ~-._~~~---._,____..--- \\", | |
| ' ~----"~ \\', | |
| " \\", | |
| '' | |
| ].join('\n') |
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
| var http = require('http') | |
| var cats = [ 'palmcat', 'sitting', 'fence', 'bike', 'shadow' ] | |
| var count = 0 | |
| var prev | |
| http.createServer(function(req, res) { | |
| var rand | |
| do { | |
| rand = cats[Math.floor(Math.random() * cats.length)] | |
| } while (rand === prev) | |
| prev = rand | |
| res.setHeader('X-Request-No', count++) | |
| res.setHeader('Content-type', 'text/plain') | |
| res.end(require('./' + cats[Math.floor(Math.random() * cats.length)])); | |
| }).listen(8080); |
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
| module.exports = [ | |
| ' a a', | |
| ' aaa aaa', | |
| ' aaaaaaaaaaaaaaaa', | |
| ' aaaaaaaaaaaaaaaaaa', | |
| ' aaaaafaaaaaaafaaaaaa', | |
| ' aaaaaaaaaaaaaaaaaaaa', | |
| ' aaaaaaaaaaaaaaaaaa', | |
| ' aaaaaaa aaaaaaa', | |
| ' aaaaaaaaaaaaaa', | |
| ' a aaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaaaaaa', | |
| ' aaa aaaaaaaaaaaaaaaaaaaa', | |
| ' aaaaaaaaaaaaaaaaaaaaaaaaaa', | |
| ' aaaaaaaaaaaaaaaaaaaaaaaaa', | |
| '' | |
| ].join('\n') |
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
| module.exports = [ | |
| " ,. .,", | |
| " ,: ':. .,. .:' :,", | |
| " ,', '.:' ':.' ,',", | |
| " : '. ' ' .' :", | |
| " ', : ' ' : ,'", | |
| " '.' .,:,. .,:,. '.'", | |
| " ,: V '. .' V :,", | |
| " ,: / ' :,", | |
| " ,: :,", | |
| " ,: =:= :,", | |
| " ,: , : , :,", | |
| " :' ',.,' ',.,:' ':", | |
| " :' ':WW::' '.", | |
| " .:' '::::' ':", | |
| " ,: '::::' :,", | |
| " :' ':::' ':", | |
| " ,: ':'' :.", | |
| " .:' '. ',.", | |
| " ,:' '' '.", | |
| " .:' .', ':", | |
| " .:' .'., :", | |
| " .: .,'' :", | |
| " :: .,'' ,:", | |
| " :: .,'',' .:'", | |
| " .,::'. .,',' ::::.", | |
| " .:' ',. ,:, ,WWWWW,", | |
| " :' : :W:' :WWWWWWW, .,.", | |
| " : ', WWW WWWWWWWWW '::,", | |
| " '. ', WWW :WWWWWWWWW '::,", | |
| " '. : WWW :WWWWWWWW' :::", | |
| " '. ,: WWW :WWWWWWW' .:::", | |
| " '. .W: WWW :WWWWWW' .,:::'", | |
| " '. :WW: WWW :WWWWW' .,,:::::''", | |
| " .,' '':: :W: :WWWWW. .,::::''", | |
| " ,' ''','',',','','''WWWWW::::''", | |
| " ':,,,,,,,': : : : : : :WWWW'''", | |
| '' | |
| ].join('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment