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
import { | |
LucideProps, | |
Moon, | |
SunMedium, | |
Twitter, | |
ExternalLink, | |
BookmarkIcon, | |
Share, | |
type Icon as LucideIcon, | |
Link, |
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
#!/bin/bash | |
# first create an API key at coinmarketcap.com. It is free for personal use. Set it in a variable: | |
export API_KEY="11111111-1111-1111-1111-111111111111" | |
# now you can call the API with curl, and extract the result with jq | |
# for example to get the quote for a crypto currency in USD: | |
coinquote() { | |
curl -s -H "X-CMC_PRO_API_KEY:$API_KEY" -H "Accept:application/json" \ | |
-d "symbol=$1&convert=USD" \ |
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
// js-cookie https://github.com/js-cookie/js-cookie | |
// Shopify's currencies.js https://cdn.shopify.com/s/javascripts/currencies.js | |
import { set, get, remove } from 'js-cookie'; | |
const Currency = window.Currency | |
if (typeof Currency === 'undefined') { | |
let Currency = {}; | |
} |