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 Entity; | |
/** | |
* Le livre est l'élément visité. | |
* De cette manière on peut lui apliquer des traitements sans affecter sa structure tout en gardant la séparation Modèle/Controlleur | |
*/ | |
class Book implements \Reader\Element | |
{ |
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 | |
var_dump($_POST); | |
$content = (isset($_POST['content'])) ? $_POST['content'] : ''; | |
?> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script src="vendors/SCEditor/jquery.sceditor.js"></script> | |
<script src="vendors/SCEditor/jquery.sceditor.bbcode.js"></script> | |
<link rel="stylesheet" href="vendors/SCEditor/minified/jquery.sceditor.min.css" type="text/css" media="all" /> |
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 | |
sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql php5-sqlite php5-intl php5-cli php-apc php5-xdebug acl git | |
## configuration apache | |
sudo sed -i 's#/var/www#/vagrant#g' /etc/apache2/sites-available/default | |
sudo adduser www-data vagrant | |
## config php apache DEV |
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 ga='git add' | |
alias gb='git branch' | |
alias gc='git commit' | |
alias gp='git pull' | |
alias gs='git status' | |
alias gl='git log --decorate --graph --oneline' | |
alias gck='git checkout' |
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 | |
git log --format=%H -n1 |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
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
/* | |
* It would be great if you fork & upgrade | |
* created by; Zolmeister | |
* edited by: Isinlor | |
* - added clone | |
* - upgrade of aim - for cloned robot | |
* - upgrade of aim - counting missed attack and adaptation | |
* - upgrade of dodge - move according to the hp | |
* edited by: type your nickname | |
* - what you changed - description |
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 | |
# gnome shell | |
# http://askubuntu.com/questions/73030/can-i-get-unity-style-super1-9-keyboard-shortcuts-for-launching-apps-in-gnome | |
sudo apt-get install gnome-shell wmctrl xbindkeys | |
cat """ | |
#Terminal | |
"wmctrl -xa Terminal || terminal" |
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 Reflected; | |
use A as Base; | |
/** | |
* Proxy class exemple | |
* | |
* @author depely |
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 Acme\DemoBundle\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
use Doctrine\Bundle\DoctrineBundle\Registry; | |
use Symfony\Component\OptionsResolver\Options; | |
use Doctrine\Common\Util\Inflector; | |
use Symfony\Component\Form\Exception\FormException; |
OlderNewer