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 | |
/** | |
* Class fuck | |
*/ | |
trait fuck | |
{ | |
public function test() | |
{ |
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
after "deploy", "deploy:cleanup" | |
after "deploy:update_code", "composer:install" | |
before "composer:install", "composer:copy_vendors" | |
after "composer:install", "phpunit:run_tests" | |
namespace :composer do | |
desc "Copy vendors from previous release" | |
task :copy_vendors, :except => { :no_release => true } do | |
run "if [ -d #{previous_release}/vendor ]; then cp -a #{previous_release}/vendor #{latest_release}/vendor; fi" | |
end |
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
>>> 0x7f6a92e01c20 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_expression | |
>>> 0x7f6a92e01bd0 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_expression | |
>>> 0x7f6a92e01b80 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_expression | |
>>> 0x7f6a92e01b30 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_expression | |
>>> 0x7f6a92e01ae0 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_expression | |
>>> 0x7f6a92e01a90 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_functionCall | |
>>> 0x7f6a92e01a40 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_expression | |
>>> 0x7f6a92e019f0 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_compileEcho | |
>>> 0x7f6a92e019a0 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler__statementList | |
>>> 0x7f6a92e01950 1 zim_Phalcon_Mvc_View_Engine_Volt_Compiler_compileForeach |
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 | |
namespace ShareModels\Traits { | |
use Phalcon\Mvc\Model\Behavior\Timestampable as TimestampableBehavior; | |
/** | |
* Class Timestampable | |
* | |
* @method addBehavior |
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 | |
/** | |
Регистрация сервиса представлений | |
$di['widgetRender'] = function () use ($di) { | |
$view = new Phalcon\Mvc\View\Simple(); | |
$view->setViewsDir(APPLICATION_ROOT . '/Views/Widgets/'); |
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
// для ссылок ведущих на изображение выводим превью | |
$('#chat_body div:last span.message a:regex(data:extension, png|jpg|jpeg|gif)').each(function() { | |
_img_class = this.href.indexOf('images/smiles')>0 ? '':'images_from_message'; | |
$(this).html($('<img/>').attr('src',this.href).attr('class', _img_class)); | |
_img_class = ''; | |
}); |
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
// PRIVATE очеловечиваем ссылки на медиа-файлы | |
this._parseMedia = function(){ | |
var _img_class = ''; | |
// подсвечиваем все ссылки | |
$message = $('#chat_body div:last .message'); | |
$message.html( ' '+$message.html()+' ' ); | |
$message.html($message.html().replace(/(\s|^)(https?:\/\/\S+)/gi,"$1<a href=\"$2\" target=\"_blank\">$2</a>")); | |
// определяем расширение куда ведут ссылки в сообщении |
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
# Для проброса интерфейса Mailcatcher из Vagrant к пользователю | |
# | |
server { | |
listen 80; | |
server_name mailcatcher.loc www.mailcatcher.loc; | |
location / { | |
proxy_pass http://127.0.0.1:1080; | |
} |
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
{ | |
"size": 0, | |
"query": { | |
"simple_query_string": { | |
"query": "найди это", | |
"fields": [ | |
"title", | |
"domain", | |
"description", | |
"keywords", |