<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
<meta name='language' content='ES'>
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 | |
use Zend\Db\Sql\Expression; | |
use Zend\Db\Sql\Predicate\Operator; | |
use Zend\Db\Sql\Select; | |
use Zend\Db\Sql\Where; | |
use Zend\Db\TableGateway\TableGateway; | |
$adapter = $this->getServiceLocator()->get('Zend\Db\Adapter\Adapter'); | |
$table = new TableGateway('users', $adapter); |
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 Application\Component\Example; | |
use Traversable; | |
use Exception as PhpException; | |
use Application\Component\Exception; | |
use Zend\Stdlib\ArrayUtils; |
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
#!/bin/bash | |
# @link http://habrahabr.ru/post/93695/ | |
# @link https://gist.github.com/jasonlewis/6291983 | |
# @link https://github.com/RoverWire/virtualhost/blob/master/virtualhost.sh | |
# @link http://www.sebdangerfield.me.uk/2011/03/automatically-creating-new-virtual-hosts-with-nginx-bash-script/ | |
# @link https://coderwall.com/p/cqoplg/bash-script-to-create-new-apache2-virtual-hosts | |
domain=$1 | |
user=georgy | |
group=georgy |
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
86937 isset | |
43159 echo | |
31697 empty | |
29252 substr | |
26146 count | |
24248 is_array | |
22572 strlen | |
19365 sprintf | |
18090 unset | |
16584 str_replace |
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
/** | |
* jQuery Plugin Template | |
* | |
* @see http://stefangabos.ro/jquery/jquery-plugin-boilerplate-revisited/ | |
*/ | |
!(function($) { | |
'use strict'; | |
$.pluginName = function (element, options) { | |
// plugin's default options |
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
/** | |
* Текст с многоточием. | |
*/ | |
.text-overflow | |
{ | |
display: block; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; |
- Не использовать IF NOT EXISTS;
- Вместо
id
называть ключиtable_name_id
; - LOCK=NONE для больших таблиц не работает, выкатывать изменения в таких таблицах только ночью с deploy-lock;
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 | |
use Dostavista\Framework\Form\FormAbstract; | |
use Zend_Form_Decorator_Label; | |
/** | |
* @property Zend_Form_Element_Text $text_field_name | |
*/ | |
class TemplateForm extends FormAbstract { | |
/** |
OlderNewer