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
/** | |
* memoizes a function using localStorage as the cache | |
* @param {function|Promise} fn function or promise you wish to memoize | |
* @param {Object} [options] additional configuration | |
* @param {number} [options.ttl=0] time to live in seconds | |
* @param {Boolean} [options.backgroundRefresh=false] whether the cache should be refreshed asynchronously, | |
* Note: new results won't resolve until next execution | |
* @return {Promise} Promise object represents memoized result | |
*/ | |
function memoizeLocalStorage( |
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 | |
//* Do NOT include the opening php tag | |
//* Remove the link 'SEO' from admin bar. It's placed there by the plugin WordPress SEO by Yoast. | |
add_action( 'wp_before_admin_bar_render', 'wlwp_admin_bar' ); | |
function wlwp_admin_bar(){ | |
global $wp_admin_bar; | |
$wp_admin_bar->remove_menu('wpseo-menu'); | |
} |
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
<NotepadPlus> | |
<UserLang name="log4j" ext="log"> | |
<Settings> | |
<Global caseIgnored="yes" /> | |
<TreatAsSymbol comment="no" commentLine="no" /> | |
<Prefix words1="no" words2="no" words3="no" words4="yes" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">[(0])0</Keywords> | |
<Keywords name="Folder+"></Keywords> |