Skip to content

Instantly share code, notes, and snippets.

View mgerasimchuk's full-sized avatar

Mikhail Gerasimchuk mgerasimchuk

View GitHub Profile

Пример запроса, приходящего в апи, от Telegram, после отправки сообщения боту

{
    "update_id": 881210205,
    "message": {
        "message_id": 12,
        "from": {
            "id": 159221766,
 "is_bot": false,

Доку переместил, так как картинок добавил в новый большой пример, поэтому смотрите по ссылке:)

Смотреть тут -> тут

@mgerasimchuk
mgerasimchuk / LICENSE.md
Last active August 8, 2018 05:50
License for N1.RU env integration intellij plugin

N1.RU env integration plugin is distributed according to the principle, "As is"

[
{
img: "https://pokemonespace.com/jeux/xy/img/ingame/01.png",
name: "Pokemon № 01",
date: "01 апреля 2018"
},
{
img: "https://pokemonespace.com/jeux/xy/img/ingame/02.png",
name: "Pokemon № 02",
@if (@CodeSection == @Batch) @then
@echo off & setlocal
set "url=https://www.google.ru/search?q=купить+букеты"
for /f "delims=" %%I in ('cscript /nologo /e:JScript "%~f0" "%url%"') do (
rem // do something useful with %%I
echo Link found: %%I
)
@mgerasimchuk
mgerasimchuk / StudentRegistrationForm.php
Created October 26, 2016 15:40
StudentRegistrationForm http://frontend.sportstrack.projects.mg-dev.ru/ (click: sign up -> champion)
<?php
/**
* @author MGerasimchuk <gerasimchuk.mihail@gmail.com>
* DATE: 12.11.2015
* TIME: 17:36
*/
namespace common\models;
use email\models\Template;
<?php
use yii\db\Migration;
class m160209_063654_group_student__create_table extends Migration
{
public function up()
{
$this->createTable('{{%group_student}}', [
'id' => $this->primaryKey(),
@mgerasimchuk
mgerasimchuk / m160512_055401_users_delete.php
Last active October 26, 2016 15:42
Remove dependent data
<?php
use yii\db\Migration;
class m160512_055401_users_delete extends Migration
{
public function safeUp()
{
$sql = <<<SQL
SET @acolinEmail = 'acollin@hartlandinternational.com';
@mgerasimchuk
mgerasimchuk / BillingTransactionController.php
Last active October 26, 2016 15:33
Overcharging with use DB transaction Controller action
<?php
namespace backend\modules\manager\controllers;
use backend\modules\manager\Controller;
use common\core\Core;
use common\models\billing\Account;
use common\models\billing\Transaction;
use common\models\billing\TransactionSearch;
use Yii;