Skip to content

Instantly share code, notes, and snippets.

View CharlyPoppins's full-sized avatar
🖖
Longue vie et prospérité

Charly Poppins CharlyPoppins

🖖
Longue vie et prospérité
View GitHub Profile
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;
@CharlyPoppins
CharlyPoppins / SilexServerValetDriver.php
Last active November 23, 2017 17:39 — forked from dblencowe/SilexServerValetDriver.php
A Laravel Valet Driver for running Silex installations
<?php
class SilexServerValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
@CharlyPoppins
CharlyPoppins / findStringInFile.sh
Created May 2, 2017 17:11 — forked from kevin-smets/findStringInFile.sh
Find text in files and show file name + line number
find . -type f -name "*.scss" -exec bash -c 'grep -rin calc ${0};' {} \;
@CharlyPoppins
CharlyPoppins / Test.php
Created April 29, 2015 09:51
@ UniqueEntity
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")
@CharlyPoppins
CharlyPoppins / ProduitType.php
Created April 11, 2015 11:32
plurialization
->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
)
)
swiftmailer:
transport: "smtp"
host: "SSL0.OVH.NET"
username: "charly@charly.com"
password: "xxx"