Skip to content

Instantly share code, notes, and snippets.

View mrjcleaver's full-sized avatar

Martin Cleaver mrjcleaver

  • Aparine
  • Guelph, ON, Canada
View GitHub Profile
import sys
import openai
import json
import pandas as pd
from Bio import Entrez
from datetime import datetime
from PyQt6 import QtWidgets, QtGui
from PyQt6.QtCore import Qt
# Replace with your own ChatGPT API key
@StefanoCecere
StefanoCecere / convert_FB_JSON.py
Last active March 28, 2026 09:55
a Python script that converts Facebook exported posts (in JSON format) and saves them as multiple markdown files
import json
import html
from datetime import datetime
def save_post(filename, date, text):
print('----- NEW POST')
print(filename)
# print(text)
body = f"""---
title:
@ThinkSalat
ThinkSalat / Readwise to Raindrop.js
Last active November 7, 2024 21:39
Syncs your Readwise documents, highlights and annotations to Raindrop. automatically adds new highlights and annotations. Set up the config using the tokens from readwise and raindrop, and leave LASTUPDATE blank as it will gather all your documents and add them to the raindrop collection on the first run. Find RAINDROPCOLLECTIONID using this htt…
const fs = require('fs');
const path = require('path');
const filePath = path.join(__dirname, 'config.txt');
const logFilePath = path.join(__dirname, 'log.txt');
function readVariables() {
try {
const fileContent = fs.readFileSync(filePath, 'utf-8');
@thedavidyoungblood
thedavidyoungblood / ADR (Architecture Decision Record) — Documentation Pattern.md
Last active April 22, 2026 09:39
ADR (Architecture Decision Record) — Documentation Pattern.md

ADR (Architecture Decision Record) — Documentation Pattern

ATTRIBUTION: thanks to Martin Cleaver https://github.com/mrjcleaver and the Agentics-Foundation https://agentics.org/ -- I took chat notes, and restructured for future reference below.

A lightweight, durable way to capture why an architectural decision was made (not just what was built), so teams can revisit decisions with context instead of re-litigating from scratch.

Tip

ADR = one decision, one file. Keep it durable, searchable, and easy to supersede.