This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# colors! | |
green="\[\033[0;32m\]" | |
blue="\[\033[0;34m\]" | |
purple="\[\033[0;35m\]" | |
reset="\[\033[0m\]" | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
# '\u' adds the name of the current user to the prompt | |
# '\$(__git_ps1)' adds git-related stuff | |
# '\W' adds the name of the current directory |
This file contains 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
email: ^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$ |
This file contains 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
<select> | |
<option value="baringo">Baringo</option> | |
<option value="bomet">Bomet</option> | |
<option value="bungoma">Bungoma</option> | |
<option value="busia">Busia</option> | |
<option value="elgeyo marakwet">Elgeyo Marakwet</option> | |
<option value="embu">Embu</option> | |
<option value="garissa">Garissa</option> | |
<option value="homa bay">Homa Bay</option> | |
<option value="isiolo">Isiolo</option> |
This file contains 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
{"lastUpload":"2020-02-26T02:21:52.234Z","extensionVersion":"v3.4.3"} |
This file contains 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
void main() { | |
outer() { | |
var counter = 0; | |
incrementCounter() { | |
counter++; | |
print(counter); | |
} | |
return incrementCounter; | |
} |
This file contains 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
{ | |
"name": "nkosg/php-go-roadrunner", | |
"description": "a php slim application run by golang using roadrunner", | |
"type": "project", | |
"require": { | |
"slim/slim": "^4.5", | |
"spiral/roadrunner": "^1.8", | |
"slim/psr7": "^1.2", | |
"php-di/slim-bridge": "^3.0", | |
"slim/http": "^1.0" |
This file contains 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
{ | |
"name": "nkosg/php-go-roadrunner", | |
"description": "a php slim application run by golang using roadrunner", | |
"type": "project", | |
"require": { | |
"slim/slim": "^4.5", | |
"spiral/roadrunner": "^1.8", | |
"slim/psr7": "^1.2", | |
"php-di/slim-bridge": "^3.0", | |
"slim/http": "^1.0" |
This file contains 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 | |
use DI\ContainerBuilder; | |
use Slim\Http\Response; | |
use DI\Bridge\Slim\Bridge; | |
use Spiral\Goridge\StreamRelay; | |
use Spiral\RoadRunner\PSR7Client; | |
ini_set('display_errors', 'stderr'); |
This file contains 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
# http service configuration. | |
http: | |
# http host to listen. | |
address: 0.0.0.0:8080 | |
# http worker pool configuration. | |
workers: | |
# php worker command - point to the entry point | |
command: "php public/index.php" | |
# worker pool configuration(for dev env) | |
pool: |