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 | |
function cf_sort_hex_colors($colors) { | |
$map = array( | |
'0' => 0, | |
'1' => 1, | |
'2' => 2, | |
'3' => 3, | |
'4' => 4, | |
'5' => 5, |
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 | |
// Based on <https://github.com/mecha-cms/x.minify> | |
namespace x\minify\_ { // start namespace | |
$n = __NAMESPACE__; | |
\define($n . "\\token_boolean", '\b(?:true|false)\b'); | |
\define($n . "\\token_number", '-?(?:(?:\d+)?\.)?\d+'); |
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 | |
// find your api key on the bottom of page @ https://webapp.imgix.com | |
define('IMGIX_API_KEY', ''); | |
// pass the url you want to purge | |
function imgix_purge($url) { | |
$headers = array( | |
'Content-Type:application/json', | |
'Authorization: Basic '. base64_encode(IMGIX_API_KEY.':') |
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
Thanks for stopping by. | |
This code has been moved to https://github.com/kaushalmodi/hugo-debugprint as a Hugo theme component. |
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
const baseColors = [ | |
{ | |
"hex": "#FFFFFF", | |
"name": "White", | |
}, | |
{ | |
"hex": "#000000", | |
"name": "Black", | |
}, | |
{ |