This file contains 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
// let response = await fetch('/collections/api/cards/channels/gory/', {credentials: 'same-origin'}); | |
// let params = Object.keys(query) | |
// .map((key) => `${encodeURIComponent(key)}=${encodeURIComponent(query[key])}`) | |
// .join('&'); | |
//import * as moment from 'moment'; | |
//import 'moment/locale/ru'; | |
// |
This file contains 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 | |
interface CommandInterface | |
{ | |
public function execute(); | |
} | |
class TurnOnCommand implements CommandInterface | |
{ | |
/** |
This file contains 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 | |
interface CommandInterface | |
{ | |
public function execute(); | |
} | |
class TurnOnCommand implements CommandInterface | |
{ | |
/** |
This file contains 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 | |
class Lamp | |
{ | |
public function turnOn() | |
{ | |
echo "I'm bright and cheerful light.\n"; | |
} | |
public function turnOff() |
This file contains 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/sh | |
mkdir -p config/autoload | |
touch config/autoload/some.global.php | |
touch config/autoload/some.local.php | |
touch config/autoload/global.php | |
touch config/autoload/local.php | |
php -r "print_r(glob('config/autoload/{,*.}{global,local}.php', GLOB_BRACE));" |
This file contains 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 Evgeny Shpilevsky <[email protected]> | |
*/ | |
class Post | |
{ | |
/** | |
* @var string |
This file contains 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 Evgeny Shpilevsky <[email protected]> | |
*/ | |
class Purchase | |
{ | |
/** | |
* @var int |
This file contains 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 Evgeny Shpilevsky <[email protected]> | |
*/ | |
class MyArrayIterator implements Iterator | |
{ | |
/** | |
* @var array |
This file contains 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/sh | |
echo "Packages installation" | |
sudo apt-get update | |
sudo apt-get install -y git-core cmake g++ libboost-dev libmysqlclient-dev \ | |
libxml2-dev libmcrypt-dev libicu-dev openssl build-essential binutils-dev \ | |
libcap-dev libgd2-xpm-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev \ | |
autoconf libtool libcurl4-openssl-dev libboost-system-dev \ | |
libboost-program-options-dev libboost-filesystem-dev wget memcached \ |
NewerOlder