Skip to content

Instantly share code, notes, and snippets.

View Ekstazi's full-sized avatar

Furtuna Maxim Ekstazi

View GitHub Profile
@Ekstazi
Ekstazi / ConsoleLogRoute.php
Last active August 29, 2015 13:59
yii console log route
<?
/**
* Class ConsoleLogRoute
* Console log route. Output log messages into console
* @package app\components\console
*/
class ConsoleLogRoute extends \CLogRoute {
const LEVEL_CONSOLE='console';
/**
@Ekstazi
Ekstazi / ProperArrayObject.php
Last active August 29, 2015 13:59
Proper Array object
<?
/**
* Object do same as raw array in php(contract with ArrayObject):
* $a[][]='a';
* $a['b'][]='c';
* $a['b'][][]='d';
*/
class ProperObjectArray implements \ArrayAccess, \Countable,\IteratorAggregate{
protected $_array=[];
@Ekstazi
Ekstazi / gist:5643180
Created May 24, 2013 12:31
Haxe callbacks
package mysql.common;
/**
* ...
* @author Ekstazi
*/
/**
* @todo
*/
class Callbacks<T>