Install imagemagick:
brew install imagemagick
Creating the .ico file with multiple sizes:
#!/usr/bin/env node | |
console.log("\n"); | |
console.log('👋 from GitHub Gist'); | |
console.log("\n"); |
// Changes Gravity Forms Ajax Spinner (next, back, submit) to a transparent image | |
// this allows you to target the css and create a pure css spinner like the one used below in the style.css file of this gist. | |
add_filter( 'gform_ajax_spinner_url', 'spinner_url', 10, 2 ); | |
function spinner_url( $image_src, $form ) { | |
return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // relative to you theme images folder | |
} |
<?php | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |
$client = new Client(); | |
$array = []; | |
$res = $client->request('POST', $url, [ | |
'body' => json_encode($array), | |
'headers' => [ | |
'Content-Type' => 'application/json', | |
] | |
]); |
.blur { | |
-webkit-filter: blur(3px); | |
-moz-filter: blur(3px); | |
-ms-filter: blur(3px); | |
-o-filter: blur(3px); | |
/* FF doesn't support blur filter, but SVG */ | |
filter: url("data:image/svg+xml;utf8,<svg height='0' xmlns='http://www.w3.org/2000/svg'><filter id='svgBlur' x='-5%' y='-5%' width='110%' height='110%'><feGaussianBlur in='SourceGraphic' stdDeviation='5'/></filter></svg>#svgBlur"); | |
filter: progid: DXImageTransform.Microsoft.Blur(PixelRadius = '3'); | |
filter: blur(3px); | |
} |