Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
add_filter( 'astra_enable_default_fonts', 'temp_disable_astra_fonts' ); | |
function temp_disable_astra_fonts( $load ) { | |
$load = false; | |
return $load; | |
} | |
add_action( 'wp_head', 'add_astra_fonts_preload', 1 ); | |
function add_astra_fonts_preload() { | |
?> | |
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/themes/astra/assets/fonts/astra.woff" as="font" crossorigin /> | |
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/themes/astra/assets/fonts/astra.ttf" as="font" crossorigin /> |
const numberDay = () => { | |
const now = new Date(); | |
const start = new Date(now.getFullYear(), 0, 0); | |
const diff = now - start; | |
const oneDay = 1000 * 60 * 60 * 24; | |
const day = Math.floor(diff / oneDay); | |
return day; | |
}; | |
const pokemonUrl = `https://pokeapi.co/api/v2/pokemon/${numberDay()}`; |
from pycoingecko import CoinGeckoAPI | |
cg = CoinGeckoAPI() | |
per_set = { | |
"YFI": 0.000798, | |
"LEND": 33.272727, | |
"SNX": 3.148585, | |
"COMP": 0.08535, | |
"MKR": 0.023989, | |
"LRC": 30.833333, |