Skip to content

Instantly share code, notes, and snippets.

View Goutte's full-sized avatar

Antoine Goutenoir Goutte

View GitHub Profile
@Goutte
Goutte / DumpyTwigFilter.php
Created February 5, 2012 18:25
Designer-friendly dump as YAML Twig Extension Filter
<?php
/**
* Extends Twig with
* {{ "my string, whatever" | pre }} --> wraps with <pre>
* {{ myBigVar | yaml_dump | pre }} as {{ myBigVar | ydump }} or {{ myBigVar | dumpy }}
* {{ myBigVar | var_dump | pre }} as {{ myBigVar | dump }}
*
* You may control the depth of recursion with a parameter, say foo = array('a'=>array('b'=>array('c','d')))
*
@Goutte
Goutte / PhpunitController.php
Created June 5, 2012 22:37 — forked from leek/PhpunitController.php
PhpunitController for Symfony2
class PhpunitController extends Controller
{
public function runTestsAction($filterClass = null)
{
// Make sure PHPUnit is autoloaded
require_once('PHPUnit/Autoload.php');
set_time_limit(0);
$version = \PHPUnit_Runner_Version::id();
@Goutte
Goutte / x3ditor.py
Last active August 29, 2015 14:24
Quick and Dirty X3D edition tools.
import math
import numpy
import BeautifulSoup # pip install --user BeautifulSoup
# The purpose of this lib is to fix X3D files exported via the `vtkExporter`,
# for example using mayavi, in order to feed them to `x3dom.js`.
# Tasks :
# - `add_axes()`
# Create axes with labels and ticks (works best if you have an outline)
@Goutte
Goutte / bash-cheatsheet.sh
Created February 14, 2018 02:19 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04