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
| <!DOCTYPE html> | |
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Runner Game</title> | |
| <style> | |
| body { | |
| background:#222; |
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
| package main | |
| import "fmt" | |
| import "math" | |
| import "math/rand" | |
| func main() { | |
| //arr := []int{1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,4,4,4,4,4,4,5,5,5,7,8,9,9,9,9,9,9,10,11,11,11,11} | |
| //arr := []int{5,6,7,8,1,1,9,1} | |
| //arr := []int{1,11,1,1,7,8,5,6,6,4} | |
| //for i := 0; i < len(arr)/2; i++ { |
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
| package main | |
| import "fmt" | |
| func main() { | |
| //arr := []int{1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,5,5,5,7,8,9,9,9,9,9,9,10,11,11,11,11} | |
| //arr := []int{5,6,7,8,1,1,9,1} | |
| arr := []int{1,11,1,1,7,8,5,6,6,4} | |
| //for i := 0; i < len(arr)/2; i++ { | |
| //arr[i], arr[len(arr) - i - 1] = arr[len(arr) - i - 1], arr[i] |
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
| DO | |
| $do$ | |
| BEGIN | |
| FOR i IN 1..25000000 LOOP | |
| INSERT INTO contacts(user_id, first_name, last_name, phone) values (2, CONCAT('Max', i), CONCAT('Mustermann ', i), CONCAT('79062901083', i)); | |
| IF i % 100000 = 0 THEN | |
| RAISE NOTICE 'Rows inserted: %', i; | |
| END IF; | |
| END LOOP; | |
| END |
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
| <?php | |
| /** https://github.com/php/php-src/blob/master/Zend/bench.php **/ | |
| if (function_exists("date_default_timezone_set")) { | |
| date_default_timezone_set("UTC"); | |
| } | |
| function simple() { | |
| $a = 0; |
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
| $79873.4 | |
| $79501.4 |
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
| calc = function () { | |
| total += eval($('.CreditAmount').text().replace(/\$/g, '+')); | |
| console.log('Total: $' + total); | |
| nextBtn = $('.nextPage'); | |
| if (nextBtn.css('display') !== 'none') { | |
| nextBtn.click(); | |
| setTimeout(function () { | |
| calc(); | |
| }, 5000); | |
| } |
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
| glass | |
| music | |
| search | |
| envelope-o | |
| heart | |
| star | |
| star-o | |
| user | |
| film | |
| th-large |
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
| <?php | |
| $version = '4.3.0'; | |
| if (isset($argv[1])) { | |
| $version = $argv[1]; | |
| } | |
| $css = file_get_contents("http://maxcdn.bootstrapcdn.com/font-awesome/{$version}/css/font-awesome.min.css"); |
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
| sudo tar -C /usr/local --strip-components 1 -xzf node-v0.10.34-linux-x86.tar.gz | |
| npm install -g bower | |
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
| echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list | |
| sudo apt-get update | |
| sudo apt-get install mongodb-10gen | |
| mongod |