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
class MuscleCollection extends ArrayCollection | |
{ | |
protected static $possibleValues; | |
public function __construct(Collection $collection) | |
{ | |
parent::__construct($collection->toArray()); | |
} |
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/sh | |
./configure --enable-rubyinterp --enable-gui=gtk2 --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.6/config --with-features=huge --prefix=/home/thib/data/bin/vim | |
#./configure --enable-rubyinterp --enable-pythoninterp=yes --with-features=huge --prefix=/home/thib/data/bin/vim --with-tlib=ncurses | |
#./configure --enable-rubyinterp --enable-pythoninterp=yes --with-features=huge --prefix=/home/thib/data/bin/vim |
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
# some more ls aliases | |
alias ll='ls -l' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias sf='php symfony' | |
alias public='sudo chown -R thib:thib * && sudo chmod -R 777 *' | |
alias git-archive='git archive' | |
alias swap='sudo swapoff -a && sudo swapon -a' | |
alias apt-hop='sudo apt-get update && sudo apt-get upgrade' | |
alias s='git status' |
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
doctrine_user.config: | |
db_driver: odm | |
class: | |
model: | |
user: Bundle\ExerciseUserBundle\Document\User | |
group: ~ | |
permission: ~ | |
form: | |
user: ~ | |
group: ~ |
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 | |
/** | |
* @mongodb:Document | |
*/ | |
class Band | |
{ | |
/** | |
* @mongodb:Field(type="string") | |
* @var string |
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
" Map <CTRL>-a to alignment function | |
vnoremap <buffer> <C-a> :call PhpAlign()<CR> | |
" {{{ Alignment | |
func! PhpAlign() range | |
let l:paste = &g:paste | |
let &g:paste = 0 | |
let l:line = a:firstline |
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
It's a shame, but https://github.com/zendframework/zf2 contains dozens of files with CRLF issues. | |
If like me, you set your Git core.autocrlf to true, then your ZendFramework submodule is always modified: | |
$ git status | |
# On branch master | |
# Changed but not updated: | |
# | |
# modified: src/vendor/zend | |
To fix it, you can set Git core.autocrlf to false *only for this submodule*. |
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
Parameters: | |
forum.repository.topic.class | |
forum.controller.topic.class | |
forum.form.topic.class | |
Serices: | |
forum.repository.topic | |
forum.controller.topic |
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 | |
$file = '/path/to/file'; | |
$mimeType = ''; | |
$fileName = 'filename'; | |
//Begin writing headers | |
header("Pragma: public"); | |
header("Expires: 0"); | |
header("Cache-Control: must-revalidate, post-check=0, pre-check=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
<?php | |
namespace Symfony\Component\Security\User; | |
/* | |
* This file is part of the Symfony package. | |
* | |
* (c) Fabien Potencier <fabien.potencier@symfony-project.com> | |
* | |
* For the full copyright and license information, please view the LICENSE |