- chrome://net-internals/
- Click the arrow in the top right of the window
- Click Clear Cache
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
var docWidth = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll('*'), | |
function(el) { | |
if (el.offsetWidth > docWidth) { | |
console.log(el); | |
} | |
} | |
); |
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
function urlContains(chunk) { | |
return window.location.href.indexOf(chunk) !== -1; | |
} |
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_bar_menu', 'show_template' ); | |
function show_template() { | |
$is_dev = strpos(getenv('APP_ENV'), 'dev') !== false; | |
if ($is_dev) { | |
global $template; | |
print_r( $template ); | |
} | |
} |
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
window.addEventListener("resize", resizeThrottler, false); | |
var resizeTimeout; | |
function resizeThrottler() { | |
// ignore resize events as long as an actualResizeHandler execution is in the queue | |
if ( !resizeTimeout ) { | |
resizeTimeout = setTimeout(function() { | |
resizeTimeout = null; | |
actualResizeHandler(); |
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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
from Sebastián Gurin (cancerberoSgx) https://github.com/gulpjs/gulp/issues/217 |
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
chrome://flags/#force-color-profile | |
I switched to sRGB from Default. Worked great. |