Looking for a new challenge?

We are hiring uprising

developer talents!

Check out the code!

We are looking for

uprisingBackendFrontendFullstackDeveloper

We're opening a new office in Varna/Bulgaria

You want to be a part of a team who shares your passion for web development.

You are curious and ready to improve your skills and participate training classes.

You have always wanted to grow together with the company.

You are diligent and always find the solution to the tasks.

You want to have a wide variety of tasks?

You wish to work for a company that is family oriented and offers great social package.

Web developers wanted!

Get this code running on your command line and you will find the right e-mail address for your application!


$interview = new interview();

class interview
{
    var $tk = [];
    var $answer = [];
    var $base = " 106 111 98 64 111 112 114 101 45 105 116 46 99 111 109";
    var $one = "102 114 111 110 116 101 110 100 45";
    var $two = "98 97 99 107 101 110 100 45";
    var $three = "102 117 108 108 115 116 97 99 107 45";
    var $ts = [1 => 'one', 2 => 'two', 3 => 'three'];
    var $who = "32|79 10 32|79 10 32|63 64|10 32|6 10 32|61 64|3 32|2 64 32|5 64|2 32|5 10 32|61 64|3 32|2 64|3 32|2 64|4 32|4 10 32|7 64|6 32|6 35 64|3 32|2 64|5 32|6 64|4 32 40 64|2 32|4 37 64|6 32|5 44 64|3 32|2 64|3 32|2 64|4 32|4 10 32|4 64|12 32|3 35 64|13 32|3 64|8 32|2 64|12 32|3 64|3 32|2 64|3 32|2 64|3 38 32|4 10 32|3 64|5 32|4 64|5 32|2 35 64|4 32|5 64|4 35 32|2 64|5 32|4 64|4 32|5 64|5 32|3 64|11 32|6 10 32|3 64|4 32|6 64|4 32|2 35 64|3 32|7 64|4 32|2 64|4 32|4 46 64|14 32|6 64|6 32|8 10 32|3 64|4 32|6 64|4 32|2 35 64|4 32|5 64|5 32|2 64|4 32|5 64|4 32|30 10 32|4 64|12 32|3 35 64|13 32|3 64|4 32|6 64|12 32|21 10 32|6 64|8 32|5 35 64|3 32 64|7 32|5 64|4 32|7 64|9 32|23 10 32|19 35 64|3 32|56 10 32|19 35 64|3 32|56 10 32|79 10 32|79 10";

    public function __construct()
    {
        $this->pI($this->who);
        $this->p("76 111 97 100 105 110 103 32 105 110 116 101 114 118 105 101 119 32 46 46 46 32");
        $this->loadtk();
        $h = fopen ("php://stdin","r");
        foreach ($this->tk as $s) {
            $this->p($s['text']);
            if (isset($s['var'])) {     
                $i = fgets($h);
                if(trim($i) != ''){
                    $this->as[$s['var']] = $i;
                    if (isset($s['response'])) {
                        $this->p($s['response']);
                        print $i;
                    }
                }
            }
        }
        $this->p((isset($this->ts[(int) $this->as['kind']])?$this->{$this->ts[(int) $this->as['kind']]}:"").$this->base);
        fclose($h);
        $this->p("65 102 116 101 114 32 119 101 32 99 104 101 99 107 101 100 32 121 111 117 114 32 97 112 112 108 105 99 97 116 105 111 110 44 32 119 101 32 119 105 108 108 32 103 101 116 32 98 97 99 107 32 116 111 32 121 111 117 32 115 111 111 110 33 32 ");
        $this->p("119 119 119 46 111 112 114 101 45 105 116 46 99 111 109 ");
        print "\n";
    }

    private function pI($t,$te=50000)
    {
        print "\n";
        foreach (explode(" ", $t) as $l) {
            $lr = explode("|", $l);
            print str_repeat(chr($lr[0]), isset($lr[1])?$lr[1]:1);
            usleep($te);
        }
        sleep(1);
    }

    private function p($t,$te=50000)
    {
        print "\n";
        foreach (explode(" ", $t) as $l) {
            print chr($l);
            usleep($te);
        }
        sleep(1);
    }

    private function loadtk()
    {
        $this->tk = [
            ['text' => '84 104 105 115 32 105 115 32 97 110 32 97 117 116 111 109 97 116 105 99 32 106 111 98 32 105 110 116 101 114 118 105 101 119 33 '],
            [
                'text' => '80 108 101 97 115 101 32 101 110 116 101 114 32 121 111 117 114 32 110 97 109 101 32 97 110 100 32 112 114 101 115 115 32 101 110 116 101 114 58 32 ',
                'var' => 'name',
                'response' => '72 105 32'
            ],
            ['text' => '87 104 97 116 32 107 105 110 100 32 111 102 32 106 111 98 32 100 111 32 121 111 117 32 108 111 111 107 105 110 103 32 102 111 114 63 '],
            [
                'text' => '80 108 101 97 115 101 32 116 121 112 101 32 105 110 32 40 49 61 102 114 111 110 116 101 110 100 44 32 50 61 98 97 99 107 101 110 100 44 32 51 61 102 117 108 108 32 115 116 97 99 107 41 58 32 ',
                'var' => 'kind'
            ],
            ['text' => '84 104 97 110 107 32 121 111 117 32 102 111 114 32 121 111 117 114 32 116 105 109 101 33 '],
            [
                'text' => '80 108 101 97 115 101 32 115 101 110 100 32 121 111 117 114 32 97 112 112 108 105 99 97 116 105 111 110 32 116 111 58 '
            ]
        ];
    }
    
}