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
# http://stackoverflow.com/questions/7244321/how-to-update-a-github-forked-repository | |
# Add the remote, call it "upstream": | |
git remote add upstream https://github.com/whoever/whatever.git | |
# Fetch all the branches of that remote into remote-tracking branches, | |
# such as upstream/master: | |
git fetch upstream | |
# Make sure that you're on your master branch: |
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
<div class="row"> | |
<div class="col-md-9"> | |
<div class="row"> | |
{% if children is defined and children.pager.currentPageResults|length %} | |
{% for child in children.pager.currentPageResults %} | |
{% if loop.index0 % 2 == 0 and not loop.first %} | |
</div> | |
<div class="row"> | |
{% endif %} |
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
// parent_template.html.twig | |
{% include "AppBundle:fields:input_text.html.twig" with { | |
'form_id': form_id, | |
'field_name': 'Numéro', | |
'required': true, | |
'attr': { | |
'data-minlength': '\\d{7}', | |
'minlength': '7', | |
'maxlength': '7', | |
'data-error': 'e0.message_error'|trans() |
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
// allow history for root user on container | |
// on /root/.bashrc | |
// add: | |
HISTFILE="/root/.bash_history" |
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
$ ./ngrok http -region eu -host-header=rewrite {LocalSiteName}.local:80 | |
// On browser or mobile browser, share page like: | |
http://bae8d36b.eu.ngrok.io |
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 | |
/** | |
* @param array $array | |
* | |
* @return array | |
*/ | |
protected function translate($array) | |
{ | |
$filtersChoicesTrans = []; | |
foreach ($array as $key => $value) { |
OlderNewer