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 | |
require_once(dirname(__FILE__) . '/../bootstrap/task.php'); | |
# load fixtures of this plugin | |
$propelData->loadData(sfConfig::get('sf_plugins_dir') . '/yetAnotherPlugin/data/fixtures'); | |
$limeTest = new lime_test(1, new lime_output_color()); | |
$task = new ExampleTask($dispatcher, $formatter); | |
$task->run(array(), array()); |
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 | |
/** | |
* Cake database configuration for git repositories. | |
* | |
* It automatically detects the current working branch and uses the appropriate database connection. | |
* Fallback is given by the "default" entry. | |
*/ | |
class DATABASE_CONFIG { | |
/** |
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
server.modules += ("mod_rewrite", "mod_magnet") |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit | |
colors="false" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
stopOnFailure="true"> | |
<filter> | |
<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
<?php | |
class JsonpFilter extends sfFilter | |
{ | |
public function execute($filterChain) | |
{ | |
// nothing to do before the action is called | |
$filterChain->execute(); | |
if (($response = $this->getContext()->getResponse()) instanceof sfWebResponse and ($request = $this->getContext()->getRequest()) instanceof sfWebRequest) |
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
class TrafficLight | |
{ | |
/** | |
* Accessors for traffic lights. | |
* | |
* Each of these values define the index, where to find a given part of the respective traffic light. | |
*/ | |
static const int green = 0; | |
static const int yellow = 1; | |
static const int red = 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
#!/bin/bash | |
APP=$1 | |
for worker in `cctrlapp $APP worker | grep -ve '^Workers' | grep -ve '^ nr\.' | tr -s " " | cut -f3 -d " "`; | |
do | |
cctrlapp $APP worker $worker | grep -v "There is no such worker for this app_name/deployment_name." | |
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
<?php | |
/** | |
* Migrations between versions 003 and 004. | |
*/ | |
class Migration004 extends sfMigration | |
{ | |
/** | |
* Migrate up to version 004. | |
*/ |
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
# Mac OS X | |
.DS_Store | |
# ZSH Plugins | |
.phing_targets | |
# Automatic backup files | |
*~.nib | |
*.swp | |
*~ | |
*(Autosaved).rtfd/ | |
# Eclipse |
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 | |
abstract class BaseFormFilterPropel extends sfFormFilterPropel | |
{ | |
public function setup() | |
{ | |
parent::setup(); | |
foreach ($this->getFields() as $eachFieldName => $eachFieldType) | |
{ |
OlderNewer