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] | |
fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' - | |
squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^' |
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 Vlr\MainBundle\Locale; | |
use Lunetics\LocaleBundle\EventListener\LocaleListener as BaseLocaleListener; | |
use Symfony\Component\HttpKernel\KernelEvents; | |
/** | |
* LocaleListener | |
* |
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
Bundle 'jakar/vim-json' | |
left g:nsippet_no_indentation_settings=0; | |
left g:snippet_no_indentation_settings=0; | |
au! BufRead,BufNewFile *.json set filetype=json | |
let mapleader="," | |
set wildignore+=.git,app/cache/* |
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
let g:Powerline_symbols = 'fancy' | |
let Tlist_Ctags_Cmd = '/opt/local/bin/ctags' | |
let g:easytags_cmd = '/opt/local/bin/ctags' | |
let g:pdv_cfg_Author="Stephane PY <[email protected]>" | |
let g:php_cs_fixer_path = "/usr/local/bin/php-cs-fixer" | |
let g:CommandTAcceptSelectionSplitMap=['<C-j>'] | |
map <leader>r :NERDTreeFind<cr> |
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
security: | |
encoders: | |
Symfony\Component\Security\Core\User\User: plaintext | |
providers: | |
fos_userbundle: | |
id: fos_user.user_manager | |
encoders: | |
"FOS\UserBundle\Model\UserInterface": sha512 |
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
use Rezzza\Formulate\Formula; | |
$formula = new Formula('{{subformula1}}-{{subformula2}}'); | |
$formula->setSubFormula('subformula1', new Formula('{{variable}} - {{variable2}}', Formula::CALCULABLE)); | |
$formula->setSubFormula('subformula2', new Formula('log(({{subformula1}})+1)')); | |
$formula->setParameter('variable', 10); | |
$formula->setParameter('variable2', 20); | |
$result = $formula->render(); |
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
%skip space \s | |
%token bracket_ \( | |
%token _bracket \) | |
%token comma , | |
%token number (0|[1-9]\d*)(\.\d+)?([eE][\+\-]?\d+)? | |
%token plus \+ | |
%token minus \-|− | |
%token pow \*\* | |
%token times \*|× | |
%token percent % |
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
{ | |
"name": "rezzza/myproject", | |
"description": "myproject", | |
"authors": [ | |
{ | |
"name": "Chuck norris", | |
"email": "[email protected]" | |
} | |
], | |
"licence": "MIT", |
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
%skip space \s | |
%token bracket_ \( | |
%token _bracket \) | |
%token comma , | |
%token number \-?(0|[1-9]\d*)(\.\d+)?([eE][\+\-]?\d+)? | |
%token plus \+ | |
%token minus \- | |
%token times \* | |
%token div / | |
%token function \w+ |
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 Foo | |
{ | |
public function bar() | |
{ | |
$copy = clone $this; | |
echo $copy->baz(); | |
} | |
private function baz() |