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/sh | |
| # running the tests | |
| ./bin/test | |
| echo "" | |
| STATUS_CODE=$? | |
| exit $STATUS_CODE |
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
| alias xphp='php -dxdebug.remote_enable=1 -dxdebug.remote_autostart=1' | |
| alias dumpath='echo $PATH | tr ":" "\n"' | |
| alias adduserpath='echo 'PATH="$1:$PATH"' >> ~/.profile' |
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 AppBundle\Form\EventListener; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
| use Symfony\Component\Form\FormEvent; | |
| use Symfony\Component\Form\FormEvents; | |
| class ContextualOptionsFormListener implements EventSubscriberInterface | |
| { | |
| /** |
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
| $('input,select,textarea', $context).on('invalid', function(evt) { | |
| var $this = $(this); | |
| setErrorMessage($this, $this.data('validation-message') || this.validationMessage); | |
| }); | |
| function setErrorMessage($field, message) { | |
| var $parent = $field.closest('div:not(.input-group)'); | |
| var $messageContainer = $parent.find('.help-block'); | |
| if (!$messageContainer.length) { | |
| $messageContainer = $('<span class="help-block"><ul class="list-unstyled"></ul></span>'); |
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
| function delegateFormInNewWindow(form, width, height) { | |
| var left = (screen.width/2)-(width/2); | |
| var top = (screen.height/2)-(height/2); | |
| var dialog = window.open(form.action, '_form', 'resizable,width='+width+',height='+height+',top='+top+',left='+left ); | |
| form.target='_form'; | |
| return dialog; | |
| } | |
| $(function() { |
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
| function killMe(event) { | |
| if (event.data === 'kill_me') { | |
| event.source.close(); | |
| } | |
| } | |
| if (window.addEventListener){ | |
| addEventListener('message', killMe, false); | |
| } else { |
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 | |
| chrome_version=$(cat <&0 | grep -o '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*') | |
| wget -O- -q "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$chrome_version" | grep -o '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*' |
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
| Set-Alias -Name php -Value \wamp64\bin\php\php7.4.26\php |
OlderNewer