Skip to content

Instantly share code, notes, and snippets.

View fabpot's full-sized avatar
😀
Happy!

Fabien Potencier fabpot

😀
Happy!
View GitHub Profile
services:
app.twig_extension:
class: App\TwigExtension
public: false
tags: [twig.extension]
app.command.doc_update:
class: App\Command\DocUpdateCommand
tags:
- { name: console.command }
@fabpot
fabpot / config.yaml
Last active November 30, 2017 15:17
services:
_defaults:
autowire: true
App\TwigExtension:
public: false
tags: [twig.extension]
App\Command\DocUpdateCommand:
tags: [console.command]
Verifying my Blockstack ID is secured with the address 18CVVNpjGbjpyNrXaX7PAdtaG5Thm5Gf6e https://explorer.blockstack.org/address/18CVVNpjGbjpyNrXaX7PAdtaG5Thm5Gf6e
// ==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(){
@fabpot
fabpot / gist:3f25555dce956accd4dd
Created November 12, 2014 17:55
PHP-CS-Fixer v0.00001
#!/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
*
@fabpot
fabpot / keybase.md
Last active January 30, 2017 17:18

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:

@fabpot
fabpot / pr-labels.js
Created December 10, 2013 08:50
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).
// ==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;
<?php
require_once __DIR__.'/autoload.php.dist';
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use Symfony\Component\ExpressionLanguage\Lexer;
use Symfony\Component\ExpressionLanguage\Parser;
use Symfony\Component\ExpressionLanguage\Compiler;
use Symfony\Component\ExpressionLanguage\SerializedParsedExpression;
<?php
require_once __DIR__.'/autoload.php.dist';
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;
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}
+ */