Skip to content

Instantly share code, notes, and snippets.

View nclavaud's full-sized avatar
🍉

Nicolas Clavaud nclavaud

🍉
View GitHub Profile
@nclavaud
nclavaud / sf2_form.php
Created November 22, 2011 21:16
Symfony2 standalone Form component example
<?php
/**
* @author Nicolas Clavaud <nclavaud@gmail.com>
* http://n.clavaud.free.fr/blog/index.php?article31/symfony2-standalone-form-component-tutorial
*/
namespace Me\MyApp;
use Symfony\Component\ClassLoader\UniversalClassLoader;
@nclavaud
nclavaud / MangoPayApiPhpUnitMock.php
Created April 20, 2017 17:14
MangoPay API PHPUnit mock
<?php
namespace Lrqdo\Tests;
use MangoPay\ApiWallets;
use MangoPay\MangoPayApi;
use MangoPay\Money;
use MangoPay\Wallet;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@nclavaud
nclavaud / pgquick
Last active January 25, 2021 08:18
PostgreSQL, quick!
#!/bin/sh
# PostgreSQL, quick!
DOCKER_NETWORK="dev"
PG_HOST="pg"
PG_PASSWORD="pgrocks!"
# pull docker image
docker image inspect postgres > /dev/null || docker pull postgres