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
svg(width='0' height='0') | |
filter#f(x='-50%' y='-200%' width='200%' height='500%') | |
//- blurred copy | |
feGaussianBlur(stdDeviation='35') | |
//- bump saturation | |
feColorMatrix(type='saturate' values='1.3') | |
//- slap original on top of blurred & saturated copy | |
feComposite(in='SourceGraphic') | |
//- no text duplication |
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 | |
add_action('admin_init', function () { | |
// redirect user trying to access | |
global $pagenow; | |
if ($pagenow === 'edit-comments.php') { | |
wp_safe_redirect(admin_url()); | |
exit; | |
} |
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
// | |
run command in terminal | |
// | |
pip install -r requirements.txt | |
/* | |
Setting up first flask server | |
*/ | |
from flask import Flask |
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 | |
// disable google fonts | |
add_filter( 'elementor/frontend/print_google_fonts', '__return_false' ); | |
// add font-display swap to elementor custom fonts | |
add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) { | |
return 'swap'; | |
// you can also play also with $current_value & $font_family for specific requirments | |
}, 10, 3 ); |
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 NOT COPY\PASTE entirety. Take only what you need. | |
The following code is just a few **examples** of some optimizations that you can do in | |
the functions.php file of any framework of your choosing | |
*/ | |
<?php | |
// disable google fonts |
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 NOT COPY\PASTE entirely into your .htaccess. Take only what you need. Thx | |
#The following code is just a few **examples** of optimizations that you can do in .htaccess file. | |
# HTTPS forced | |
<IfModule mod_rewrite.c> | |
#RewriteCond %{HTTP_HOST} !^www\. [NC] | |
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteCond %{HTTPS} off |