This file contains hidden or 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 | |
// $this->executeWithExponentialBackOff("self::myMethodName", array("id" => 1), 64); | |
// in this exmaple myFunctionName() is private and resides in the same class as executeWithExponentialBackOff(). | |
// myFunctionName() has to throw an exception when it fails for the backoff to be performed. | |
class Foo | |
{ | |
private function executeWithExponentialBackOff($callback, $parameters, $timeout) | |
{ |
This file contains hidden or 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 | |
/* | |
* Installation (Symfony): | |
* ======================= | |
* # services.yml | |
* services: | |
* # ... | |
* acme.rss_feed_generator: | |
* class: Acme\AcmeBundle\Service\RssFeedGeneratorService |
This file contains hidden or 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 | |
CHROME_VERSION=`google-chrome-stable --version | awk '{print($3)}' | awk -F '.' '{print($1"."$2"."$3)}'` | |
CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION}"` | |
echo "Chrome version: ${CHROME_VERSION}" | |
echo "Suitable chromedriver version: ${CHROMEDRIVER_VERSION}" | |
echo "" | |
echo "Downloading chromedriver..." |
OlderNewer