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 Symfony\Component\ClassLoader; | |
class UniversalClassLoaderChecker | |
{ | |
public function check(UniversalClassLoader $classLoader) | |
{ | |
return array_merge( | |
$this->checkNamespaces($classLoader), |
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
<browserTypes> | |
<browserType> | |
<name>phantomjs</name> | |
<displayName>PhantomJS</displayName> | |
<icon>chrome.png</icon> | |
<path>/opt/phantomjs/bin/phantomjs</path> | |
<options>--proxy=localhost:9999 /opt/phantomjs/null.js</options> | |
<processName>phantomjs.sh</processName> | |
<capacity>5</capacity> |
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 | |
for cfg in `git config -f .gitmodules -l` | |
do | |
url=`echo $cfg | awk -F"submodule.*.url=" '{print $2}'`; | |
if [ -n "$url" ]; then | |
echo "git submodule add $url $path"; | |
git submodule add $url $path; |
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/sh | |
if test -z "$1" | |
then | |
echo "Please give database name" | |
echo "Usage: $0 <db_name> <URL>" | |
return | |
fi | |
if test -z "$2" |
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
{'origStep':+"_sahi._setValue(_sahi._byXPath(\"(.//*[self::input+|+self::textarea+|+self::select][not(./@type+=+'submit'+or+./@type+=+'image'+or+./@type+=+'hidden')][(((./@id+=+'knplabs-translator-value'+or+./@name+=+'knplabs-translator-value')+or+./@id+=+//label[contains(normalize-space(string(.)),+'knplabs-translator-value')]/@for)+or+./@placeholder+=+'knplabs-translator-value')]+|+.//label[contains(normalize-space(string(.)),+'knplabs-translator-value')]//.//*[self::input+|+self::textarea+|+self::select][not(./@type+=+'submit'+or+./@type+=+'image'+or+./@type+=+'hidden')])[1]\"),+\"It's+alive,+ALIVE!\")",+'step':+"_sahi._setValue(_sahi._byXPath(\"(.//*[self::input+|+self::textarea+|+self::select][not(./@type+=+'submit'+or+./@type+=+'image'+or+./@type+=+'hidden')][(((./@id+=+'knplabs-translator-value'+or+./@name+=+'knplabs-translator-value')+or+./@id+=+//label[contains(normalize-space(string(.)),+'knplabs-translator-value')]/@for)+or+./@placeholder+=+'knplabs-translator-value')]+|+.//label[contains(normalize |
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 Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
use Symfony\Component\Finder\Finder; | |
class SmartKernel 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
<?php | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
/** | |
* a vim exception handler | |
* | |
* Commands a remote vim instance to display the stacktrace in a quickfix list | |
* | |
* @author Florian Klein <florian.klein@free.fr> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="video-js/video.js" type="text/javascript" charset="utf-8"></script> | |
<link rel="stylesheet" href="video-js/video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8" /> | |
</head> | |
<body> | |
<!-- Begin VideoJS --> | |
<div class="video-js-box"> | |
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody --> |
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
find . -type f -name "*.html.twig" | xargs perl -pi -e "s/>([^\s<{>].*?)</>{{ '\1'|trans }}</g" |
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 | |
$callback = function($data = null) { | |
if (empty($data)) { | |
return new \PropelObjectCollection(); | |
} | |
return $data; | |
}; | |
$builder | |
->appendClientTransformer(new CallbackTransformer($callback, $callback)); |