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
<VirtualHost *:80> | |
# .... | |
php_value auto_prepend_file /etc/apache2/local/coverage-start.php | |
php_value auto_append_file /etc/apache2/local/coverage-stop.php | |
# .... | |
</VirtualHost> |
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
# MultiViews is evil. It automatically adds .php to /index. | |
Options -MultiViews |
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
# import sqlite3 | |
from pysqlite2 import dbapi2 as sqlite3 |
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 | |
# This is a simple build script and will be executed on your CI system if | |
# available. Otherwise it will execute while your application is stopped | |
# before the deploy step. This script gets executed directly, so it | |
# could be python, php, ruby, etc. | |
WP_CONTENT=$OPENSHIFT_REPO_DIR/php/wp-content | |
for SUBDIR in plugins themes uploads blogs.dir; do |
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
$('label').click(function () { | |
$(this).next().focus(); | |
}); |
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
'view_helpers' => array( | |
'invokables' => array( | |
'userIdentity' => 'Application\View\Helper\UserIdentity', | |
) | |
), |
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
#include "double_fork.hh" | |
#include <cstdlib> | |
#include <cerrno> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
int double_fork()/*{{{*/ |
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
import static org.testng.Assert.*; | |
public class AssertResult | |
{ | |
static public void assertSucceeded(Result result) | |
{ | |
assertTrue(result.succeeded(), result.getMessage()); | |
} | |
static public void assertFailed(Result result) |
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
public class Result | |
{ | |
public static final Result SUCCESS = new Result(true, ""); | |
private boolean success; | |
private String message; | |
private Result(boolean success, String message) | |
{ | |
this.success = success; |