Moved to @marijn/spil.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\ExerciseBundle\DependencyInjection\Compiler; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
/** | |
* Overrides the default host for the Router's RequestContext service. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
perl -pi -e 's/array\(/array\(___CLASSLIST___,\n/' vendor/.composer/autoload_classmap.php | |
phpab -n -t vendor/.composer/autoload_classmap.php -o vendor/.composer/autoload_classmap.php -b `pwd`/vendor/.composer/ --tolerant vendor/ | |
perl -pi -e 's/array\(/array\(___CLASSLIST___,\n/' vendor/.composer/autoload_classmap.php | |
phpab -n -t vendor/.composer/autoload_classmap.php -o vendor/.composer/autoload_classmap.php -b `pwd`/vendor/.composer/ --tolerant src/ | |
perl -pi -e "s/'\/\.\./\\\$vendorDir.'/" vendor/.composer/autoload_classmap.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This custom task for deploying a Symfony 2 application is set to run after deploy:setup | |
# is executed. It interactively ask a user for database details to create a parameters.ini | |
# thus avoiding having to manually on to the server and create it | |
# | |
# Helper function from http://stackoverflow.com/a/1662001/1041885 | |
# | |
# Interactive parameter.ini generation adapted from http://adurieux.blogspot.co.uk/2011/10/using-capistrano.html | |
# ... | |
# ... Your deployment settings/tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Doctrine\Common\Annotations\AnnotationRegistry; | |
if (!class_exists('Composer\\Autoload\\ClassLoader', false)) { | |
$loader = require __DIR__.'/../vendor/autoload.php'; | |
} else { | |
$loader = new Composer\Autoload\ClassLoader(); | |
$loader->register(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use JMS\DiExtraBundle\Annotation as DI; | |
use Symfony\Component\HttpKernel\Event\FilterResponseEvent; | |
/** @DI\Service */ | |
class QSAListener | |
{ | |
private $blacklist; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# These are the original commands, courtesy of: | |
# http://www.ravelrumba.com/blog/watch-compile-less-command-line/ | |
# Requires watchr: https://github.com/mynyml/watchr | |
# watchr -e 'watch(".*\.less$") { |f| system("lessc #{f[0]} > #{f[0]}.css && echo \"#{f[0]} > #{f[0]}.css\" "}') } | |
# Requires inotify-tools: https://github.com/rvoicilas/inotify-tools | |
# while true;do N=`find -name "*.less" `;inotifywait -qe modify $N ;for f in $N;do lessc $f ${f%.*}.css;done;done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Assert that a XPath matches on a DomNode | |
* | |
* Uses the XPath Method boolean() to see if a node test evaluates to true | |
* It's true if one of the follow conditions is met: | |
* | |
* - a number is true if and only if it is neither positive or negative zero nor NaN | |
* - a node-set is true if and only if it is non-empty | |
* - a string is true if and only if its length is non-zero | |
* - an object of a type other than the four basic types is converted to a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Mobile meta & links --> | |
<!-- Reference | |
Custom Icon and Image Creation Guidelines: | |
http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
Configuring Web Applications: | |
http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |