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
[ | |
{ "keys": ["super+)"], "command": "indent" }, | |
{ "keys": ["super+("], "command": "unindent" } | |
] |
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
{# template.html.twig #} | |
{% set title = 'Mon titre' %} | |
{% set username = 'Jane Doe' %} | |
<h1>{{ title }}</h1> | |
<p>{{ username }}</p> | |
{% include 'user.html.twig' with {title: username} only %} |
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
{# template.html.twig #} | |
<h1>Mon grand titre </h1> | |
{% embed "user.html.twig" %} | |
{% block titre %} | |
<h2>Mon titre</h2> | |
{% endblock %} | |
{% block bottom %} |
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 Queriable (form, subset, queryKey, callback, labels) | |
{ | |
if (form.length === 1 && subset.length === 1) { | |
this.labels = typeof(labels) != "undefined" ? labels : {}; | |
this.statement = []; | |
this.form = form; | |
this.subset = subset; |
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
var a = parseFloat(""); | |
alert(typeof(a)); // "Number"; | |
alert(a); // "NaN" a.k.a. Not a Number; |
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
{% extends "form_div_layout.html.twig" %} | |
{% block form_row %} | |
{% spaceless %} | |
<div> | |
{{ form_label(form) }} | |
{{ form_errors(form) }} | |
{{ form_widget(form) }} |
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
.table-behaviors { | |
display: table /* <table> */ | |
display: table-cell /* <td> */ | |
display: table-row /* <tr> */ | |
display: table-column /* <col> */ | |
display: table-column-group /* <colgroup> */ | |
display: table-footer-group /* <tfoot> */ | |
display: table-header-group /* <thead> */ | |
} |
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 Acme\DemoBundle\Twig; | |
use Symfony\Component\PropertyAccess\PropertyAccess; | |
use Doctrine\Common\Inflector\Inflector; | |
class ChoiceExtension extends \Twig_Extension | |
{ | |
/** |
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
.table { | |
.sorted { | |
.asc:before, | |
.desc:before { | |
content: ""; | |
margin-right: 5px; | |
.caret(); | |
} | |
.asc:before { | |
border-top: 0; |
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
[ | |
{ "keys": ["super+)"], "command": "indent" }, | |
{ "keys": ["super+("], "command": "unindent" } | |
] |
OlderNewer