How to use [zaiste/postgresql][1] Docker container.
Docker >= 0.5.0 required.
docker pull zaiste/postgresql
sudo rm /etc/localtime | |
sudo ln -s /usr/share/zoneinfo/UTC /etc/localtime | |
# now check it's ok | |
$ date | |
lun déc 5 10:03:47 UTC 2011 |
watch( '(src/.*\.feature)$' ) {|md| system("./console -e=test behat -fprogress #{md[1]}") } | |
watch( '(src/.*\.php)$' ) {|md| system("phpunit -c app src") } |
imports: | |
- { resource: parameters_dev.yml } | |
- { resource: config.yml } | |
- { resource: config_local.yml, ignore_errors: true } | |
framework: | |
profiler: | |
only_exceptions: false | |
web_profiler: |
<?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; |
If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0
phantomjs:
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.local
goutte: ~
selenium2:
wd_host: "http://localhost:8643/wd/hub"
#!/usr/bin/env osascript -l JavaScript | |
ObjC.import("Cocoa"); | |
function run(argv) { | |
var app = $.NSApplication.sharedApplication; | |
var statusBarItem = $.NSStatusBar.systemStatusBar.statusItemWithLength($.NSVariableStatusItemLength); | |
var track = Application('Spotify').currentTrack | |
ObjC.registerSubclass({ | |
name: "ProgramDelegate", |
<?php | |
// ... | |
class AbstractInvoiceLineType extends AbstractType | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
// ... |
##Preview
Display your iOS App Rating info. It uses iTunes Store website as the source.
##Usage
<?php | |
namespace Application\ProdrepHelperBundle\Component\Event; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
use Symfony\Component\Security\Core\Exception\AccessDeniedException; | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
/** | |
*/ | |
class AjaxAuthenticationListener |