Skip to content

Instantly share code, notes, and snippets.

View ftdebugger's full-sized avatar

Evgeny Shpilevsky ftdebugger

  • Israel, Tel-Aviv
View GitHub Profile
<?php
abstract class AbstractHandler
{
/**
* @var AbstractHandler
*/
protected $_next;
/**
#!/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 \
<?php
/**
* @author Evgeny Shpilevsky <evgeny@shpilevsky.com>
*/
class MyArrayIterator implements Iterator
{
/**
* @var array
<?php
/**
* @author Evgeny Shpilevsky <evgeny@shpilevsky.com>
*/
class Purchase
{
/**
* @var int
<?php
/**
* @author Evgeny Shpilevsky <evgeny@shpilevsky.com>
*/
class Post
{
/**
* @var string
#!/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));"
<?php
class Lamp
{
public function turnOn()
{
echo "I'm bright and cheerful light.\n";
}
public function turnOff()
<?php
interface CommandInterface
{
public function execute();
}
class TurnOnCommand implements CommandInterface
{
/**
<?php
interface CommandInterface
{
public function execute();
}
class TurnOnCommand implements CommandInterface
{
/**