Skip to content

Instantly share code, notes, and snippets.

View coppinger's full-sized avatar
🦨
shipping.exe

Charlie Coppinger coppinger

🦨
shipping.exe
View GitHub Profile
@nathanialhenniges
nathanialhenniges / statusline-command.sh
Last active February 19, 2026 04:29
Claude Code Status Line - Rich 2-line status bar with emojis
#!/bin/bash
input=$(cat)
# Extract fields from JSON stdin
dir=$(echo "$input" | jq -r '.workspace.current_dir // ""')
model=$(echo "$input" | jq -r '.model.display_name // "Unknown"')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // 0')
duration_ms=$(echo "$input" | jq -r '.cost.total_duration_ms // 0')
ctx_pct=$(echo "$input" | jq -r '.context_window.used_percentage // 0')
@premiare
premiare / Icons.tsx
Created August 30, 2023 02:16
shadcn/ui Icons
import {
LucideProps,
Moon,
SunMedium,
Twitter,
ExternalLink,
BookmarkIcon,
Share,
type Icon as LucideIcon,
Link,
@Frank-Buss
Frank-Buss / coinquote.sh
Created February 6, 2022 01:36
get the quote for a crypto currency from coinmarketcap in USD
#!/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" \
@lilyfielding
lilyfielding / currency.js
Created August 17, 2020 20:07
vanilla JS alternative to jquery.currencies.js by @carolineschnapp
// 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 = {};
}