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 | |
class PhpFunctionExtension extends \Twig_Extension | |
{ | |
/** | |
* {@inheritdoc} | |
*/ | |
public function getFunctions() | |
{ | |
return [ |
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 - | |
#=============================================================================== | |
# | |
# FILE: clone-sandbox.sh | |
# | |
# USAGE: ./clone-sandbox.sh | |
# | |
# DESCRIPTION: | |
# | |
# OPTIONS: --- |
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 | |
return Symfony\CS\Config\Symfony23Config::create() | |
->fixers( | |
[ | |
'-concat_without_spaces', | |
'concat_with_spaces', | |
'ordered_use', | |
'short_array_syntax', | |
] |
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
imports: | |
- { resource: ../../assets_version.yml } | |
framework: | |
templating: | |
assets_version: %assets_version% |
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
# Use the front controller as index file. It serves as fallback solution when | |
# every other rewrite/redirect fails (e.g. in an aliased environment without | |
# mod_rewrite). Additionally, this reduces the matching process for the | |
# startpage (path "/") because otherwise Apache will apply the rewritting rules | |
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). | |
<IfModule mod_dir.c> | |
DirectoryIndex app.php | |
</IfModule> | |
<IfModule mod_authz_core.c> |
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 | |
// Tests/App/app/AppKernel.php | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() |
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 | |
files=${1-"*.avi"}; | |
audio_stream=${2-"0:1"}; | |
video_stream=${3-"0:0"}; | |
output_dir=${4-output}; | |
echo -e "\e[0;33m"; | |
echo " Files: $files"; | |
echo "Video stream: $video_stream"; |