Skip to content

cistov/2012-OpenStack-Contest-Entry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

OpenStack Contest Entry

===========================

This is my OpenStack 2012 contest entry.

It's a valid Node.js prorgam, which outputs "Happy Birthday Openstack" at index route and prints itself at "/src" route.

                                                                                              
                                                               "Happy Birthday"
                                                              "Open"  +  "Stack"                                        
                                                              9000;        8000.                                        
                                                              9099        ;8000.                                        
                                                            ,0000        ;;8000.                                        
                                                           .0000        ;;;0000                                        
                                                           0000         ;;;0x00;                                         
                                                          0x008         ;;;0000                                          
                                                        ,0000          ;;;;000                                        
                                                        0000;          ;;;7000.                                       
                                                       0007           ;;;;7000.                                          
                                                      0000;           ;;;;7000.                                          
                                                     8000.            ;;;;7000.                                          
                                                   ~0000              ;;;;7000.                                          
                                                  .0000               ;;;;7000.                                          
                                                 .800+0               ;;;;7000.                                          
                                                ;0;fs=                require('fs');                         
                                             ;Z000=0;                 fs["readFile"](__filename,                      
    function(e,d){0000000000000,            00000                        ;;;;;;;;;;;;;;;;8000000                    
    0000;h=require('http');00000,         000000,                                            00000                    
    0000000;c=h["createServer"];0,    ~8980000+                                              Z000                    
    00001111111111111111111111000,89080000008+                                                Z000                    
    00001111111111111111111111000000000000+                                                   Z000                    
    0000;h["createServer"]=function(cb){                                                      Z000                    
    0000;cb["data"]=e?"Oops":d;000908,                                                        Z000                    
    0000;return c(cb);797777700800,                                                           Z000                    
    00007777777777777777777700000,                                                            Z000                    
    00007777777777777777777700000,                                                            Z000                    
    00007777777777777777777700000,                                                            Z000                    
    00007777777777777777777700000,                                                            Z000                    
    0000;};7777777777777777798000,                                                            Z000                    
    00007777777777777777777798000,                                                            Z000                    
    00007777777777777777777798000,                                                            Z000                    
    00007777777;f="s.wr";77798000,                                                            Z000                    
    00007777777777777777777798000,                                                            Z000                    
    00007777777777777777777798000,                                                            Z000                    
    00007777777777777777777798000.                                                           ;0000                    
    00007;f+="iteHead(200,";98000.                                                          ;;0000                    
    00007777777777777777777798000.                                                         ;;;0000                    
    00007777777777777777777798000.                                                        ;;;;0000                    
    000077;f+="{'Content-Type':";                                                        ;;;;;0000                    
    0000;f+="'text/plain'});";800.                                                      ;;;;;;0000                    
    00007777777777777777777798000.                                                      ;;;;;;0000                    
    0000777777;f+='if(q.url=';77980000000000.;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98000                    
    0000;f+='=="/src")';777;f+='{'+"s.end(arg"+"uments.callee."+"data)}"+"else{";f+="s.end('Happy";
     f+=" Birthday OpenStack');}";    ~9;h["createServer"](global['Function']("q","s",f))["listen"]
                                        (global['process']['env']['VMC_APP_PORT']||1337);});00;
                                           // 2012 Artur Cistov https://twitter.com/cistov
                                                        

References

===============