Skip to content

Instantly share code, notes, and snippets.

Darryl Porter s001dxp

Block or report user

Report or block s001dxp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
s001dxp /
Created Mar 11, 2018 — forked from aczietlow/
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    $capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
s001dxp / walksync.js
Created Dec 18, 2017 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
View walksync.js
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
else {
s001dxp / BaseModel.js
Created Dec 17, 2015 — forked from gaearon/BaseModel.js
A base Backbone model that supports nested models/collections with simple syntax. See
View BaseModel.js
// First, define `nestedTypes` in your model.
// Each nested type may be a Model or Collection subtype. ={
nestedTypes: {
View WfDefinition.php
require_once 'configurations.php';
class WfBuilder{
private $workflow;
private $process_steps = array();
function build_workflow(){
View testExecution.php
require_once 'WorkflowDefinition.php';
require_once 'Execution.php';
$wbuilder = new WfBuilder();
$workflow_definition = $wbuilder->build_workflow();
$execution = new ezcWorkflowTestExecution(1);
$execution->workflow = $workflow_definition;
You can’t perform that action at this time.