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 | |
/** | |
* yuicompressor.php | |
* Simple wrapper for yui js|css compressor | |
* | |
* Author: swvitaliy | |
*/ | |
class yuicompressor { |
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 | |
/** | |
* Образование множественного числа слова по правилам грамматики английского языка. | |
* | |
* @see http://www.study.ru/support/handbook/noun3.html | |
* | |
* Author: swvitaliy | |
*/ | |
class Plural |
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 | |
/** | |
* Simple curl function. | |
* | |
* @author swvitaliy ([email protected]) | |
*/ | |
class CurlException extends Exception { | |
public function __toString() { r.$this->getMeeturn 'Exception 'ssage(); } |
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 | |
/** | |
* Simple curl class. | |
* | |
* @author swvitaliy ([email protected]) | |
*/ | |
class CurlException extends Exception { |
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 | |
/** | |
* libnotify.php | |
* Simple wrapper for libnotify library. Only for *nix. | |
* | |
* Author: swvitaliy | |
*/ | |
class Libnotify { |
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 | |
/** | |
* fluent.php | |
* Пример автоматизации флаент вызовов с использованием магического метода __call. | |
* | |
* Author: swvitaliy | |
*/ | |
class F1 { |
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 | |
/** | |
* mixin.php | |
* Mixin emulation in php 5.3 | |
* | |
* Author: swvitaliy | |
*/ | |
class MixinContainer extends stdClass { |
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 | |
/** | |
* events.php | |
* Простая реализация паттерна producer-consumer (Listener) | |
* | |
* Author: swvitaliy | |
*/ | |
class Listener { | |
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 | |
/** | |
* proxycacher.php | |
* Proxy cacher method calls. | |
* | |
* Author: swvitaliy | |
*/ | |
class ProxyCacher { | |
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
window.statusProducer = function (d, options) { | |
var options = options || {}, | |
availableStatuses = options.statuses || {}, | |
dataKey = options.dataKey || ('statusData' + new Date().getTime()); | |
errorDialog = options.errorDialog || alert; | |
return { | |
addListener: function (status, callee) { |
OlderNewer