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
| // JOGGLING ASYNC | |
| var http = require('http'); | |
| var urls = [process.argv[2], process.argv[3], process.argv[4]]; | |
| var count = 0; | |
| var arr = []; | |
| function get(a) { | |
| http.get(urls[a], (res) => { |
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 | |
| class Router{ | |
| public $get = []; //when get routes are defined it is save here | |
| public $post = []; // post routes are saved when when defined | |
| //make a function that defined get routes | |
| public function get($url, $controller) { | |
| $this->get[$url] = $controller; // push url and controller to get property array | |
| } |
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 | |
| class Palindrome { | |
| public $words; | |
| public $regex = '/[^A-Za-z0–9]/'; | |
| public $reserved; | |
| public function __construct( $words) | |
| { |
NewerOlder