Inspired by Andreas Samuelsson http://www.agentmolly.com/artist/gallery.jsp?a=173&image=8483 Read about how I made it http://katydecorah.com/code/2014/05/05/ja/
A Pen by Katy DeCorah on CodePen.
| #!/usr/bin/env python3 | |
| """ | |
| Claude Code token usage analyzer. | |
| Analyzes ~/.claude/projects/ JSONL files for token usage patterns. | |
| """ | |
| import json | |
| import os | |
| import sys | |
| from pathlib import Path |
Inspired by Andreas Samuelsson http://www.agentmolly.com/artist/gallery.jsp?a=173&image=8483 Read about how I made it http://katydecorah.com/code/2014/05/05/ja/
A Pen by Katy DeCorah on CodePen.
| import mimetypes | |
| import sys | |
| from collections import OrderedDict | |
| filename = sys.argv[1] | |
| def file_type(filename): | |
| type = mimetypes.guess_type(filename) | |
| return type |
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:6a174b07b17c28a0985f035b7a77636d27359a69] |
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:504fe34d32be432f11785329e68c5c6852ee073f] |
| <!-- particles.js container --> | |
| <div id="particles-js"></div> | |
| <script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> |
| The regex patterns in this gist are intended to match any URLs, | |
| including "mailto:foo@example.com", "x-whatever://foo", etc. For a | |
| pattern that attempts only to match web URLs (http, https), see: | |
| https://gist.github.com/gruber/8891611 | |
| # Single-line version of pattern: | |
| (?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])) |