Skip to content

Instantly share code, notes, and snippets.

@Venzon
Venzon / post.md
Created June 4, 2014 23:04 — forked from kbond/post.md

Install git:

sudo apt-get install git

Configure Git:

touch ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "Your Name"

git config --global user.email "Your Email"

@Venzon
Venzon / gist:8694089
Last active August 29, 2015 13:55
Symfony2 Collection Type with default value support by prototype_data option
<?php
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class CollectionPrototypeDataType extends AbstractType
{
/**
* {@inheritdoc}
*/