Skip to content

Instantly share code, notes, and snippets.

Avatar
🍉

Nicolas Clavaud nclavaud

🍉
View GitHub Profile
@nclavaud
nclavaud / pgquick
Last active Jan 25, 2021
PostgreSQL, quick!
View pgquick
#!/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
@nclavaud
nclavaud / MangoPayApiPhpUnitMock.php
Created Apr 20, 2017
MangoPay API PHPUnit mock
View MangoPayApiPhpUnitMock.php
<?php
namespace Lrqdo\Tests;
use MangoPay\ApiWallets;
use MangoPay\MangoPayApi;
use MangoPay\Money;
use MangoPay\Wallet;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@nclavaud
nclavaud / sf2_form.php
Created Nov 22, 2011
Symfony2 standalone Form component example
View sf2_form.php
<?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;