Skip to content

Instantly share code, notes, and snippets.

View okraks's full-sized avatar
🚀
Working from home

Isaac Antwi okraks

🚀
Working from home
View GitHub Profile
@okraks
okraks / token-counter.ts
Created August 10, 2026 02:13
Local Coding Agent Usage Counter
/* USAGE:
node scripts/sync-token-usage.mjs # merges new days into data/token-usage.json
node scripts/sync-token-usage.mjs --dry-run # prints the summary, writes nothing
Reads local token logs from supported coding agents, totals the tokens against
known model pricing, and keeps a running daily history in data/token-usage.json.
The /token-usage page reads that file. No database: usage is derived from local
token counts, not billed through an API.
Providers:
@okraks
okraks / ANIMATION-RESOURCES.md
Created November 18, 2025 16:00 — forked from uxderrick/ANIMATION-RESOURCES.md
Web Animation Best Practices & Guidelines - A comprehensive guide to creating great web animations

Web Animation Best Practices & Guidelines

Document Purpose

This is a comprehensive reference guide for creating high-quality web animations. Use this as a knowledge base for implementing animations in web applications. All principles, timing values, and easing functions provided here are production-tested and ready to use.


Core Principles

Principle 1: Natural Motion

@okraks
okraks / OkrakuIsaacAntwi.js
Created May 20, 2020 22:41
Solving the first part of the Software Engineering Coding Challenge
//Software Engineering Coding Challenge
//Okraku Isaac Antwi
/*This solution only solves the first part of the challenge and
doesn't remove exactly K consecutive letters from the input string*/
//Calling the compression function and passing the string only
compression("AAAAAAAAAAABXXAAAAAAAAAA");
//Compression function