Some informative websites :
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 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 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 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
filter: | |
excluded_paths: [vendor/*, tests/*] | |
tools: | |
external_code_coverage: true | |
checks: | |
php: | |
verify_property_names: true | |
verify_argument_usable_as_reference: true | |
verify_access_scope_valid: true | |
variable_existence: true |
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 killMe(event) { | |
if (event.data === 'kill_me') { | |
event.source.close(); | |
} | |
} | |
if (window.addEventListener){ | |
addEventListener('message', killMe, false); | |
} else { |
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 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 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 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
[user] | |
name = Raphaël Lefebvre | |
email = raphael@raphaellefebvre.be | |
[core] | |
excludesfile = c:/Users/Raphaël/.gitignore_global | |
autocrlf = input | |
[ui] | |
color = auto | |
[grep] | |
extendedRegexp = true |
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
alias xphp='php -dxdebug.remote_enable=1 -dxdebug.remote_autostart=1' | |
alias dumpath='echo $PATH | tr ":" "\n"' | |
alias adduserpath='echo 'PATH="$1:$PATH"' >> ~/.profile' |
#PHP getter method
/**
* Getter of $${PARAM_NAME}
*
* @return ${TYPE_HINT}
*/
#if (${TYPE_HINT} == "bool" || ${TYPE_HINT} == "boolean")
public ${STATIC} function ${PARAM_NAME}()
NewerOlder