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
DROP PROCEDURE my_loop; | |
CREATE PROCEDURE my_loop () | |
BEGIN | |
DECLARE | |
i INT DEFAULT 7; | |
WHILE (i < 78) | |
DO INSERT INTO my_table (field_1, field_2) | |
VALUES(i, 'test'); | |
SET i = i + 1; |
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 SilexServerValetDriver extends ValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
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
find . -type f -name "*.scss" -exec bash -c 'grep -rin calc ${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
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | |
use Symfony\Component\Validator\Constraints as Assert; | |
use Symfony\Component\Validator\ExecutionContextInterface; | |
use Knp\DoctrineBehaviors\Model as ORMBehaviors; | |
/** | |
* @ORM\Table("Test") |
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
->add('categories', 'entity', array( | |
'label' => 'clicissimmo.produit.categorie.categorie', | |
'class' => 'Charly\CharlyBundle\Entity\Categorie', | |
'choices' => $em->getRepository('CharlyCharlyBundle:Categorie')->getTreeviewFlat(), | |
'property' => 'getMyLabel', | |
'required' => false, | |
'multiple' => true, | |
'expanded' => 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
swiftmailer: | |
transport: "smtp" | |
host: "SSL0.OVH.NET" | |
username: "charly@charly.com" | |
password: "xxx" |