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
cd vendor/bin | |
rm -rf ./* | |
ln -s ../codeception/base/codecept | |
ln -s ../cebe/markdown/bin/markdown | |
ln -s ../phpunit/phpunit/phpunit | |
ln -s ../yiisoft/yii2/yii |
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
#!/bin/bash | |
head -c 100 /dev/urandom | sha256sum | head -c${1:-9} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
SELECT | |
click_unique, | |
click_total, | |
action_date, | |
orders_total, | |
payout_total, | |
to_pay, | |
payment_pending, | |
approved, | |
declined, |
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
[user] | |
name = rgen3 | |
email = rgen3@mail.ru | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls | |
smtpserver = smtp.gmail.com |
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 | |
$camel = "thisIsCamelCase"; | |
$id = preg_replace('/(?<![A-Z])([A-Z]+)/', '_$1', $camel); | |
$id = strtolower($id); |
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 | |
$meal = [ | |
"breakfast" => "08:00", | |
"lunch" => "12:00", | |
"dinner" => "19:00" | |
]; | |
/** | |
* Using for | |
*/ |
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
SELECT val | |
FROM ( | |
SELECT arrayJoin(params.param_value) as val | |
FROM click | |
WHERE user_id = :user_id | |
) | |
WHERE like(val, :value) | |
LIMIT 10 |
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
SELECT | |
parameters, | |
total_clicks, | |
total_orders, | |
action_date, | |
approved, | |
declined, | |
pending | |
FROM ( | |
SELECT |
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 | |
declare(ticks = 1); | |
class smartExit | |
{ | |
private $exit = false; | |
public function __construct() | |
{ | |
register_tick_function([$this, 'tick']); |
NewerOlder