Skip to content

Instantly share code, notes, and snippets.

View ignacioribes's full-sized avatar
💭
Hello World 👽

Ignacio Ribes ignacioribes

💭
Hello World 👽
View GitHub Profile
@dcatanzaro
dcatanzaro / poke.js
Last active November 12, 2021 14:42
Pokemon del día
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()}`;
@Macarse
Macarse / dpi.py
Created September 14, 2020 22:54
DPI value calculated through Coingecko API
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,
@Balachandark
Balachandark / functions.php
Last active January 3, 2024 20:19
Preload fonts
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 />
@ericelliott
ericelliott / essential-javascript-links.md
Last active April 22, 2024 10:15
Essential JavaScript Links
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active March 27, 2024 06:36
A badass list of frontend development resources I collected over time.