Skip to content

Instantly share code, notes, and snippets.

View stephanvierkant's full-sized avatar
🔍
Op zoek naar collega's

Stephan Vierkant stephanvierkant

🔍
Op zoek naar collega's
View GitHub Profile
class FormErrorsSerializer {
public function serializeFormErrors(\Symfony\Component\Form\Form $form, $flat_array = false, $add_form_name = false, $glue_keys = '_')
{
$errors = array();
$errors['global'] = array();
$errors['fields'] = array();
foreach ($form->getErrors() as $error) {
$errors['global'][] = $error->getMessage();
@stephanvierkant
stephanvierkant / README.md
Last active February 2, 2016 09:39 — forked from mbostock/.block
Focus+Context via Brushing - missing data

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.

This is a test what happens when removing data. (2002 is missing)