Skip to content

Instantly share code, notes, and snippets.

View miketromba's full-sized avatar
🎯
Focusing

Michael Tromba miketromba

🎯
Focusing
View GitHub Profile
@miketromba
miketromba / FifoOperationQueueCache.js
Created February 7, 2022 17:10
FifoOperationQueueCache.js
// @ts-nocheck
function createDeferredPromise(){
let res, rej
const promise = new Promise((resolve, reject) => { [res, rej] = [resolve, reject] })
promise.resolve = res
promise.reject = rej
return promise
}
class FifoOperationQueue {
@miketromba
miketromba / qa.md
Last active December 20, 2025 07:36
/QA Cursor Command

Please give me a clear and concise QA checklist for the changes we made so that I can manually test to verify the integrity of our functionality.

Do not include features or functionality that are unrelated to the changes we made. Only include relevant features and functionality that may have been impacted by the changes.

Make it as concise and minimal as possible to effectively test the changes - do not include additional unnecessary steps.

Structure the checklist like this:

# QA Checklist for [come up with a name for the update]
@miketromba
miketromba / exportClaudeChat.js
Created March 30, 2026 16:53
Export Claude Conversation To Markdown
// ── Claude Conversation β†’ Markdown Exporter ──────────────────────────────────
function htmlToMd(node) {
if (!node) return '';
if (node.nodeType === Node.TEXT_NODE) return node.textContent;
if (node.nodeType !== Node.ELEMENT_NODE) return '';
const tag = node.tagName.toLowerCase();
const children = () => Array.from(node.childNodes).map(htmlToMd).join('');
// ── ChatGPT Conversation β†’ Markdown Exporter (saved + temp chats) ────────────
// Paste into the console on any ChatGPT conversation, saved OR temporary.
(() => {
function htmlToMd(node) {
if (!node) return '';
if (node.nodeType === Node.TEXT_NODE) return node.textContent;
if (node.nodeType !== Node.ELEMENT_NODE) return '';
const tag = node.tagName.toLowerCase();