This file contains 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
$(function () { | |
ajaxForm('.ajax-form'); | |
}) | |
var ajaxForm = function(query) | |
{ | |
$(query).submit(function(event) { | |
event.preventDefault(); | |
var $form = $(this); |
This file contains 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
<!-- no extends --> | |
{% use 'form_div_layout.html.twig' with widget_attributes as base_widget_attributes %} | |
{% block widget_attributes %} | |
{% set full_name = name %} | |
{{ block('base_widget_attributes') }} | |
{% endblock widget_attributes %} | |
{% form_theme form _self %} |
This file contains 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 | |
/** | |
* Unity_Sniffs_Formatting_ElseIfSniff. | |
* | |
* Sniff: | |
* - else if instead of elseif | |
*/ | |
class Unity_Sniffs_Formatting_ElseIfSniff implements PHP_CodeSniffer_Sniff | |
{ |
This file contains 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 Lingwa\Bundle\CoreBundle\Test; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
abstract class BaseTestCase extends WebTestCase | |
{ | |
static $cleared = false; | |
public static function setupBeforeClass() |
This file contains 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 | |
// $container->get('service') | |
class Service | |
{ | |
public function setLogger(LoggerInterface $logger) | |
{ | |
$this->logger = $logger; | |
} | |
This file contains 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
[ | |
{ "id" : 1, "type" : "Article", "title" : "A" }, | |
{ "id" : 2, "type" : "Video", "title" : "B" }, | |
{ "id" : 3, "type" : "Article", "title" : "C" }, | |
{ "id" : 4, "type" : "Article", "title" : "D" }, | |
{ "id" : 5, "type" : "Video", "title" : "E" }, | |
{ "id" : 6, "type" : "Article", "title" : "F" }, | |
{ "id" : 7, "type" : "Article", "title" : "G" }, | |
{ "id" : 8, "type" : "Video", "title" : "H" }, | |
{ "id" : 9, "type" : "Article", "title" : "I" }, |
This file contains 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 ActiveRecordTestCase extends ProphecyTestCase | |
{ | |
protected $columns = []; | |
protected $class; | |
/** | |
* @var \CActiveRecord |
This file contains 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
#fetches a git branch from a repository | |
ps1_git_extra() { | |
branch=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ -z "$branch" ] ; then return ; fi | |
local timeout=1 | |
echo "[$branch$statmark]" | |
} | |
git_dirty() { | |
# check if we're in a git repo |
This file contains 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 | |
// My/Ns/File | |
namespace My\Ns; | |
class File | |
{ | |
} |
This file contains 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
#backends should be injected here | |
director d1 round-robin { | |
} |
OlderNewer