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 namespace App\Services; | |
/** | |
* A PHP version of the Enigma machine. | |
* Wikipedia: http://en.wikipedia.org/wiki/Enigma_machine | |
* | |
* This might not be an accurate representation. I have never seen, nor used an enigma machine. | |
* This class was created by reading the article at http://enigma.louisedade.co.uk/howitworks.html. | |
* | |
* Usage: |
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
BROWSER_WIDTH = 1600 | |
BROWSER_HEIGHT = 1200 | |
Capybara.default_driver = :selenium | |
include Capybara::DSL | |
def take_screenshot(path, name, convert_options={}) | |
# Wait for JS to load data and so on | |
sleep 2 | |
retinafy_screen |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 | |
(http://www.wtfpl.net/about/) | |
Copyright (C) 2015 Mario Mendes (@hyprstack) | |
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es) | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. |
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 JPB_User_Caps { | |
/** | |
* An array of all protected roles | |
* @var array | |
*/ | |
protected $protectedRoles = array( | |
'webmaster', |