Skip to content

Instantly share code, notes, and snippets.

View mybuddymichael's full-sized avatar

Michael Hanson mybuddymichael

View GitHub Profile
@mybuddymichael
mybuddymichael / SKILL.md
Created November 12, 2025 18:09
Claude skill to save design inspiration in my Obsidian notes
name description allowed-tools
save-design-inspiration
Save design inspiration from URLs (tweets, websites, videos) with media. Use when user shares URLs for design inspiration, mentions 'dinspo' or 'design inspiration', or wants to save visual references.
Bash(mise:*), Bash(bun:*)

Save Design Inspiration

Saves design inspiration from URLs with automatic media download and note creation.

@mybuddymichael
mybuddymichael / tagtime.ts
Created May 13, 2024 18:24
TagTime reference implementation
const GAP = 45 * 60; // Average gap between pings, in seconds
// const URPING = 1184097393; // Ur-ping ie the birth of Timepie/TagTime! (unixtime)
// const SEED = 11193462; // Initial state of the random number generator
const URPING = 1715455233; // Ur-ping ie the birth of Timepie/TagTime! (unixtime)
const SEED = 584340993; // Initial state of the random number generator
const IA = 16807; // =7^5: Multiplier for LCG random number generator
const IM = 2147483647; // =2^31-1: Modulus used for the RNG
let totalPings = 0;
// Above URPING is in 2007 and it's fine to jump to any later URPING/SEED pair
@mybuddymichael
mybuddymichael / overlapper.py
Created July 5, 2021 14:59 — forked from phu54321/overlapper.py
Fix for cloze overlapper (2.1.28+)
# -*- coding: utf-8 -*-
# Cloze Overlapper Add-on for Anki
#
# Copyright (C) 2016-2019 Aristotelis P. <https://glutanimate.com/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version, with the additions
Sign In Screen*
sign in -> Dashboard
Dashboard
sign out -> Sign In Screen
Nothing Claimed
request match -> Match Claimed
Match Claimed
### Keybase proof
I hereby claim:
* I am mybuddymichael on github.
* I am mybuddymichael (https://keybase.io/mybuddymichael) on keybase.
* I have a public key ASBrByGrPY4l-9ymKtl8ITc1fa46aVEBV9X1Iym84MFuego
To claim this, I am signing this object:
@mybuddymichael
mybuddymichael / fix-homebrew-npm.md
Last active September 15, 2015 22:45 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

If you just want to fix the issue quickly, scroll down to the "solution" section below.

Explanation of the issue

If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this:

$ npm update npm -g

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@mybuddymichael
mybuddymichael / README.md
Last active August 29, 2015 14:15 — forked from mbostock/.block
  1. If you haven’t already: brew install ffmpeg gifsicle imagemagick.
  2. Open QuickTime Player.
  3. File > New Screen Recording.
  4. Record.
  5. Save as recording.mov.
  6. mkdir frames
  7. cd frames
  8. ffmpeg -i ../recording.mov -r 24 recording-%03d.png
  9. convert recording-001.png palette.gif
  10. convert -dither none -remap palette.gif recording-*.png recording-uncompressed.gif

Sketch Plugins

A list of Sketch plugins hosted at GitHub, in no particular order.