View gist:32c9d0200605a336488df3913da14dce
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
'<h1>Hello world2</h1>' | |
</body> | |
</html> |
View Looking for 50M+ fules Ubuntu
du -h -d 2 -t 50000000 |
View .travis.yml
os: | |
- linux | |
language: php | |
php: | |
- '7.1' | |
services: | |
- postgresql |
View Present simple
I, you, we, they + do | |
He, she, it + does | |
I, you, we, they + do not / don’t + do | |
He, she, it + does not / doesn’t + do | |
Do + I, you, we, they + do? | |
Does + he, she, it + do? | |
-ss, -ch, -sh, -x в конце глагола + -es: fix – fixes | |
согласный + -y в конце глагола + -es: study – studies | |
гласный + -y в конце глагола + -s: play – plays |
View laravel_bik_validation.php
<?php | |
namespace App\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
class CheckBankAccount implements Rule | |
{ | |
public $bikForTest = ''; |
View gist:0843685b8235a0692403126e5d300e4a
select DISTINCT ON (t.orders) * from (select max(id) id, max(email), max(orders) as orders, campaign_id from coupons group by campaign_id ORDER BY orders DESC) as t ORDER BY t.orders DESC |
View gist:25ffec34abbdbd8648835c4f44832a4f
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
) | |
type Object struct { | |
Num json.Number |
View .zshrc
export GOPATH=`pwd` | |
export PATH="$PATH:$GOPATH/bin" | |
echo -e "\033[0;32m CURRENT GOPATH IS: $GOPATH \e[0m" | |
alias rp='source ~/.zshrc' |
View ReactPHP process POST request
$http->on('request', function ($request, $response) { | |
$sink = new React\Stream\BufferedSink(); | |
$request->pipe($sink); | |
$sink->promise()->then(function ($requestBody) use ($response) { | |
parse_str($requestBody, $requestData); | |
var_dump($requestData); | |
$response->writeHead(); | |
$response->end("Hi, thanks man.\n"); |
View gist:10111911
{ | |
"name": "symfony/framework-standard-edition", | |
"license": "MIT", | |
"type": "project", | |
"description": "Video Catalog", | |
"autoload": { | |
"psr-0": { "": "src/" } | |
}, | |
"require": { | |
"php": ">=5.3.3", |