This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
<?php | |
namespace Incenteev\Bundle\Form\Extension; | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
/** | |
* @author Adrien Brault <[email protected]> |
# Laravel | |
php -dmemory_limit=1G /usr/local/bin/composer install | |
php -dmemory_limit=1G /usr/local/bin/composer update | |
php -dmemory_limit=1G /usr/local/bin/composer require SOMETHING | |
php artisan package:install lucadegasperi/oauth2-server-laravel | |
# Git - Remove a folder without deleting locally | |
git rm -r --cached folder_name | |
# heroku |
<?php | |
namespace Incenteev\WebBundle\Validator; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* @Annotation | |
* @Target({"CLASS", "ANNOTATION"}) | |
*/ |
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="${projectName}" basedir="." default="build:main"> | |
<!-- Properties --> | |
<property name="dir.app" value="${project.basedir}/app" /> | |
<property name="dir.src" value="${project.basedir}/src" /> | |
<property name="dir.build" value="${project.basedir}/app/build" /> | |
<property name="dir.docs" value="${dir.build}/docs" /> | |
<property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" /> | |
<property name="dir.docs.docblox" value="${dir.docs}/docblox" /> | |
<property name="dir.reports" value="${dir.build}/logs" /> |
class MoneyType extends AbstractType implements DataMapperInterface | |
{ | |
public function buildForm(FormBuilder $builder, array $options) | |
{ | |
$builder | |
->add('amount', 'integer') | |
->add('currency', 'string') | |
->setDataMapper($this) | |
; | |
} |
#!/usr/bin/env bash | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# Get "add-apt-repository" Command | |
sudo apt-get install -y software-properties-common |