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 | |
/** | |
* Get the average pixel colour from the given file using Image Magick | |
* | |
* @param string $filename | |
* @param bool $as_hex Set to true, the function will return the 6 character HEX value of the colour. | |
* If false, an array will be returned with r, g, b components. | |
*/ | |
function get_average_colour($filename, $as_hex_string = 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
<?php | |
define('ISM_API_KEY', "your client key"); | |
define('ISM_API_SECRET', "your client secret"); | |
define('ISM_API_TOKEN', "user/client token"); | |
$client = new ISM_Client(ISM_API_KEY, ISM_API_SECRET); | |
$client->setToken(ISM_API_TOKEN); | |
$jobs = $client->apis->jobs()->getJobs(); |
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 | |
/** | |
* Url Signing Helper Class | |
* | |
* @author Paul Ferrett <paul.ferrett@servicecentral.com.au> | |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
*/ | |
class UrlSigning { |
NewerOlder