Skip to content

Instantly share code, notes, and snippets.

😀
Happy!

Fabien Potencier fabpot

😀
Happy!
Block or report user

Report or block fabpot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:76d560c172445fb3a53da897ae381509
Verifying my Blockstack ID is secured with the address 18CVVNpjGbjpyNrXaX7PAdtaG5Thm5Gf6e https://explorer.blockstack.org/address/18CVVNpjGbjpyNrXaX7PAdtaG5Thm5Gf6e
View keybase.md

Keybase proof

I hereby claim:

  • I am fabpot on github.
  • I am fabpot (https://keybase.io/fabpot) on keybase.
  • I have a public key ASCLJewen7-RozcwzRuXgnzDL_0HXEtgp85eU0Xtlj-3HQo

To claim this, I am signing this object:

View config.yaml
services:
app.twig_extension:
class: App\TwigExtension
public: false
tags: [twig.extension]
app.command.doc_update:
class: App\Command\DocUpdateCommand
tags:
- { name: console.command }
View config.yaml
services:
_defaults:
autowire: true
App\TwigExtension:
public: false
tags: [twig.extension]
App\Command\DocUpdateCommand:
tags: [console.command]
View ed.diff
diff --git a/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php b/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php
index b92defe..942f51d 100644
--- a/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php
+++ b/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php
@@ -132,6 +132,22 @@ class ContainerAwareEventDispatcher extends EventDispatcher
}
/**
+ * {@inheritdoc}
+ */
View gist:43fda1b7d76f666f8a38

2.7.1 blockers

To be merged or rejected:

@fabpot
fabpot / gist:3f25555dce956accd4dd
Created Nov 12, 2014
PHP-CS-Fixer v0.00001
View gist:3f25555dce956accd4dd
#!/usr/bin/env php
<?php
/*
* Coding Standards (a.k.a. CS)
*
* This script is designed to clean up the source files and thus follow coding
* conventions.
*
* @see http://symfony.com/doc/2.0/contributing/code/standards.html
*
View gist:cc2e79d138badf7c3a94
commit e1f188b522c05f2c0e1695603c8034cf751f8550
Author: Fabien Potencier <fabien.potencier@gmail.com>
Date: Wed Sep 26 00:54:25 2012 +0200
modified Twig_Error_* exceptions to override exception filename and line with the original template filename and line
diff --git a/CHANGELOG b/CHANGELOG
index 93109d0..51a6def 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@fabpot
fabpot / pr-labels.js
Created Dec 10, 2013
Displays pull requests labels on Github. Change 'YOU_API_TOKEN' to a Github token or remove the query parameter altogether (but you will run out of calls very fast).
View pr-labels.js
// ==UserScript==
// @name Adds Labels on Github Pull Request
// @namespace http://fabien.potencier.org
// @include https://github.com/*/*/pulls*
// @version 2
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// ==/UserScript==
$(function() {
$(".pulls-list .list-group-item h4").each(function() {
var pull_request = this;
View pull_request_labels.user.js
// ==UserScript==
// @name Pull Request Labels
// @namespace http://joshuaflanagan.com
// @include https://github.com/*/*/pulls
// @version 1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// ==/UserScript==
$(function(){
var $pull_requests = $(".pulls-list .list-group-item h4");
$pull_requests.each(function(){
You can’t perform that action at this time.