Skip to content

Instantly share code, notes, and snippets.

View ke-bab's full-sized avatar

pas-cal ke-bab

View GitHub Profile
@ke-bab
ke-bab / gist:4d43a2108f8f0c0cd9ffbc4b3a07ba1d
Created July 30, 2018 11:51
Структура полей для Реестра Туризма
[
{
"name": "E1",
"description": "Реестровый номер"
},
{
"name": "E2",
"description": "Полное наименование"
},
{
@ke-bab
ke-bab / strategy.php
Last active January 19, 2018 09:55
PHP pattern "strategy" example, with ducks
// from "Head First Design Patterns by Eric Freeman"
interface FlyBehavior
{
public function fly();
}
class FlyWithWings implements FlyBehavior
{
public function fly() {
@ke-bab
ke-bab / gist:e21126283894e53bd3d31e4de88a1c7e
Created October 27, 2017 12:07
request example from trustpilot.com
{
"events" : [
{
"eventName": "service-review-created",
"version": "1",
"eventData": {
"id": "53bffd360000640002975387",
"language": "en",
"stars": 5,
"title": "Les Possédés. Fédor Mikhaïlovitch Dostoïevski",