Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Set locale to ensure proper decimal point representation
export LC_NUMERIC="en_US.UTF-8"
# Fetches price from Coingecko Terminal for Higher MemeCoin
# Curl command to fetch price
RESULT=$(curl -s 'https://api.geckoterminal.com/api/v2/simple/networks/base/token_price/0x0578d8A44db98B23BF096A382e016e29a5Ce0ffe' -H 'accept: application/json')
@agustif
agustif / DelayRedirect.tsx
Created October 29, 2020 23:30 — forked from JT501/DelayRedirect.tsx
Next Router - DelayRedirect
import { useRouter } from 'next/router';
import React, { useEffect, useState } from 'react';
interface DelayProps {
delay: number;
to: string;
banner: boolean;
showCount: boolean;
}
@agustif
agustif / README.md
Created October 29, 2018 14:42 — forked from a-barbieri/README.md
NextJS sitemap generator with dynamic URL

NextJS sitemap generator

Install

The current setup has been tested on Next Js 7.0.0.

You need to install Axios.

$ npm install axios
@agustif
agustif / buildSitemap.js
Created October 29, 2018 14:41 — forked from evantahler/buildSitemap.js
35 lines to build a sitemap for next.js projects
#! /usr/bin/env node
// I am ./bin/buildSitemap.js
const path = require('path')
const glob = require('glob')
const fs = require('fs')
const SITE_ROOT = process.env.SITE_ROOT || 'https://www.actionherojs.com'
const SOURCE = process.env.SOURCE || path.join(__dirname, '..', 'pages', '/**/*.js')
const DESTINATION = process.env.DESTINATION || path.join(__dirname, '..', 'static', 'sitemap.xml')
@agustif
agustif / standard-notes-dark.css
Created October 22, 2017 23:11
Dark Theme for Standard Notes
@import url('https://fonts.googleapis.com/css?family=Roboto:300');
@import url('https://fonts.googleapis.com/css?family=Inconsolata');
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
:root
{
/* FONTS */
--overall-font-family: 'Roboto';
--overall-font-size: 14px;
--overall-font-color: #cccccc;
@agustif
agustif / .proton
Last active April 29, 2017 03:29
proton-cpu
{
;; This is your main proton configuration file
;; While using proton, all atom related configuration has to go inside here
;; Everything that is not set up through this file will get wiped on start
;; We gave you some cool defaults below but if you don't like it, feel free to change :)
;; Layers you wish to have active
;; To get a list of all available layers, check github.com/dvcrn/proton/tree/master/src/cljs/proton/layers
:layers
[