I hereby claim:
- I am illycz on github.
- I am illycz (https://keybase.io/illycz) on keybase.
- I have a public key ASC0HqoRz530BveMrcCixtB4CmBMzcScK9OUwgCwq9Ftrwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### | |
### --------------------------------------------------- | |
### D E V I L B O X R U N - T I M E S E T T I N G S | |
### --------------------------------------------------- | |
### | |
### All the following settings are applied during | |
### $ docker-compose up | |
### | |
### No need to rebuild any dockers! | |
### |
import c from "classnames" | |
import s from "./index" | |
export const padding = (...args) => { | |
const [[a, b, c, d], mq] = args | |
if (mq) { | |
return c( | |
s.padding(a + b + c + d, mq), | |
) |
/** | |
* Remove content permissions metabox added by Members plugin. | |
*/ | |
function prefix_remove_members_metabox() { | |
remove_meta_box( 'content-permissions-meta-box', 'post', 'advanced' ); | |
remove_meta_box( 'content-permissions-meta-box', 'page', 'advanced' ); | |
} | |
add_action( 'add_meta_boxes' , 'prefix_remove_members_metabox', 9999 ); |
http://www.studionaam.com/ | |
$elements = $('.image'); | |
$elements.each(function(i, e) { | |
$(window).scrollTop() + $(window).height() > $(this).offset().top + 100 ? $(this).addClass("inview") : $(this).removeClass("inview"); | |
}); | |
$(window).scroll(function () { | |
$elements = $('.image'); | |
$elements.each(function(i, e) { |
The simplest way to have PNG fallback for browsers without SVG support: | |
<img src="logo.svg" onerror="this.onerror=null;this.src='logo.png'"> |
# CUSTOM / Disable rewrite for custom folder | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/blog | |
</IfModule> |
0. RESOURCES | |
http://www.smashingmagazine.com/2014/06/25/how-to-speed-up-your-wordpress-website/ | |
1. IDENTIFY PLUGINS THAT ARE SLOWING YOU DOWN | |
https://wordpress.org/plugins/p3-profiler/ | |
2. COMPRESS YOUR WEBSITE | |
http://checkgzipcompression.com/ | |
https://gist.github.com/illycz/1b896273dfd4cf26d184 |
# enable keep alive (http://www.smashingmagazine.com/2014/06/25/how-to-speed-up-your-wordpress-website/) | |
Header set Connection keep-alive |