Skip to content

Instantly share code, notes, and snippets.

View notgosu's full-sized avatar

Pavel Naumenko notgosu

View GitHub Profile
Общая теория
ООП - как понимаешь
Полиморфизм в PHP
Принципы SOLID?
MVC? Какую роль выполняет каждый из составляющих элементов?
PHP
- [ ] PHP7, что нового
- [ ] PHP7, за счет чего скорость
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
<script language="javascript" type="text/javascript">
for (var i=0; i <= 3; i++) {
msg = (i == 2) ? "Happy Birthday dear Ann!" : "Happy Birthday to You!" ;
alert(msg);
}
</script>
{
"products": [
{
"guid": "8819a070-246c-11e4-9776-001fc6aa01da",
"sku": "CI31",
"label": "Золотая цепочка ",
"announce": "",
"content": "",
"type_guid": "7bc3d3f9-081b-11e4-9501-001fc6aa01da",
"metal_guid": "59399eaf-125a-11e4-997f-001fc6aa01da",
server {
listen 80;
server_name mindguid.com;
client_max_body_size 100m;
root /web/mindguide/frontend/web/;
index index.php;
error_log /var/log/nginx/front.error.log;
server {
listen 80; # listen for IPv4
server_name vseprosto.dev;
root /Volumes/storage/work-web/www/yii2/vse-prosto;
#access_log off;
#error_log /dev/null crit;
charset utf-8;
client_max_body_size 100M;
<?php
/**
* Author: Pavel Naumenko
*/
namespace console\controllers;
use common\models\User;
use yii\base\InvalidConfigException;
use yii\console\Controller;
use yii\rbac\DbManager;
public static function CreateLead($authHeader, $url)
{
$newName = "Test-name-vintage";
$email = "vintage@vintage.com.ua";
$phone = "111111111";
$desc = '';
$lang = '';
$pageUrl = '';
$formData = '(100000001, 100000000)';
$productUrl = '';
public static function CreateLead($authHeader, $url)
{
$newName = "Test-name-vintage";
$email = "vintage@vintage.com.ua";
$phone = "111111111";
$desc = '';
$lang = '';
$pageUrl = '';
$formData = '';
$productUrl = '';
<?php
/**
* Author: Pavel Naumenko
*/
namespace frontend\components;
use yii\base\ActionEvent;
use yii\base\Behavior;
use yii\helpers\ArrayHelper;