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 | |
| /** | |
| * Task: https://gist.github.com/vudaltsov/dc4f372692d2eabbc8c3d29cd4de0ccd | |
| * Udalcov's solution with fibers: https://gist.github.com/vudaltsov/6f298c3952b70a48a73e85c310b2edd5 | |
| * | |
| * My non-fibers solution assumes no handling of handler exceptions in middleware =) | |
| * And year, I know that using exceptions in control flow is not very good =) | |
| * | |
| * middleware does 3 things | 
  
    
      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
    
  
  
    
  | package main | |
| import ( | |
| "fmt" | |
| "bufio" | |
| "os" | |
| "strings" | |
| "strconv" | |
| ) | 
  
    
      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
    
  
  
    
  | /* | |
| * Quill 1.* cannot next block elements inside <li> including nested <ul>,<ol>. | |
| * To achieve nested lists it uses flat linear lists with CSS class `ql-indent-\d+` on <li>. | |
| * Nesting <ul> inside <ol> or vice-versa cause topmost list to break in two adjacent lists. | |
| * | |
| * There is the only solution: fix bad HTML after getting it from Quill and break it back before | |
| * passing to Quill again for editing. | |
| */ | |
| const mkNode = (tagName = 'div') => document.createElement(tagName); | 
  
    
      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 | |
| namespace PaymentSystems; | |
| use Core; | |
| use Exception; | |
| use LE; | |
| use Payment\ExtCurrency; | |
| use Payment\QiwiWalletApi\QiwiUncertaintyException; | |
| use Payment\QiwiWalletApi\QiwiWalletApi; | 
  
    
      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
    
  
  
    
  | ВАРИАНТ С НЕБОЛЬШОЙ АНИМАЦИЕЙ ПРИ НАВЕДЕНИИ КУРСОРА | |
| Русская версия: | |
| <a href="https://visitvladivostok.ru/?utm_source=partner-website&utm_medium=banner&utm_campaign=member-sign&utm_content=dumpling-republic" | |
| title="Участник Vladivostok Pass. Карта гостя города и путеводитель" | |
| target="_blank" | |
| style="display: inline-block; padding: 3px 6px; border-radius: 5px" | |
| onmouseover="this.style.backgroundColor='rgba(255,255,255,0.1)';" | |
| onmouseout="this.style.backgroundColor='unset';"> | 
  
    
      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
    
  
  
    
  | package ru.bravik.vcp; | |
| import android.app.Application; | |
| import io.objectbox.Box; | |
| import io.objectbox.BoxStore; | |
| import io.objectbox.android.AndroidObjectBrowser; | |
| import ru.bravik.vcp.di.DIContext; | |
| import timber.log.Timber; | 
  
    
      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 | |
| /** | |
| * @author Roman Naumenko <naumenko_subscr@mail.ru> | |
| * Date: 25.12.2017 | |
| * Time: 12:41 | |
| */ | |
| namespace App\Entity; | |
| use Doctrine\Common\Collections\AbstractLazyCollection; | 
  
    
      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
    
  
  
    
  | Меры безопасности. | |
| 1. Фильтрация по IP | |
| Сейчас в фильтре должны быть только сайт иллюзиона и сервер вл.ру. | |
| 2.Подпись некоторых ВХОДЯЩИХ запросов общим секретом. | |
| У сервера и клиентов есть общий секрет - символьная строка произвольной длины (псвудослучайно сегенрированная). | |
| У каждого клиента разный секрет, какой секрет изсползовать для какого клиента сервер определяет по IP адресу. | |
| Все входящие запросы должны подписываться по следующей схеме: | |
| $sign = md5(зparam1 . param2 . paramN . $shared_secret); |