php codecept.phar bootstrap
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
# require 'active_support' | |
# require 'active_support/core_ext' | |
require 'json' | |
require 'values' | |
class Statement < Value.new(:title, :description) | |
def to_json(state = nil) | |
{ | |
title: title, | |
properties: { |
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
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --headless --remote-debugging-port=9222 --disable-gpu https://chromium.org |
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
AfterStep() do | |
sleep 2 | |
end | |
AfterStep() do | |
print "Single Stepping. Hit enter to continue" | |
STDIN.getc | |
end |
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
How to have two different Firefox versions the one for cheesecake and the latest (for the coverage matrix) | |
https://support.mozilla.org/en-US/questions/797010 | |
1. Install (i.e., drag) Firefox4.x into a different folder than Firefox 3.8.x (a sub-folder of the Applications folder or wherever else you like). | |
2. Launch Firefox 4 with the Profile Manager by entering the following in a Terminal window: | |
/Path/to/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager | |
Replace the "/Path/to" part with the actual path (duh) and type a "Return" at the end of the line. | |
3. Create a new profile for the 4.x version and uncheck the "Don't ask at startup" box, then click the "Start Firefox" button. |
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
/** | |
* Selects an option in a Chosen Selector based on its label | |
* | |
* @return void | |
*/ | |
public function selectOptionInSelectize($label, $option) | |
{ | |
$I = $this; | |
$I->waitForJS("return jQuery(\"label:contains('$label')\");"); | |
$selectID = $I->executeJS("return jQuery(\"label:contains('$label')\").attr(\"for\");"); |
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 | |
/** | |
* @package Joomla | |
* @subpackage Tests | |
* | |
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
// Maximise error reporting. |
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
# Just run this: | |
defaults write com.apple.finder AppleShowAllFiles TRUE |
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
git commit --amend --author="Author Name <[email protected]>" |
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
// Get the database object | |
$db = JFactory::getDbo(); | |
// JTableCategory is autoloaded in J! 3.0, so... | |
if (version_compare(JVERSION, '3.0', 'lt')) | |
{ | |
JTable::addIncludePath(JPATH_PLATFORM . 'joomla/database/table'); | |
} | |
// Initialize a new category |