Skip to content

Instantly share code, notes, and snippets.

View lswainemoore's full-sized avatar

Lincoln Swaine-Moore lswainemoore

View GitHub Profile
@kconner
kconner / macOS Internals.md
Last active February 13, 2026 21:33
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@kepano
kepano / obsidian-web-clipper.js
Last active February 12, 2026 02:54
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@emareg
emareg / regex-migrate-bs-4-to-5.py
Created May 26, 2021 11:36
Migrate Bootstrap 4 to 5 via RegEx
# table for regex replacements
tabRegEx=[
[r"ml(-\d)", r"ms\1"],
[r"mr(-\d)", r"me\1"],
[r"pl(-\d)", r"ps\1"],
[r"pr(-\d)", r"pr\1"],
[r"data-toggle=([\"'](?:collapse|dropdown|tab)[\"'])", r"data-bs-toggle=\1"],
[r"data-target=", r"data-bs-target="],
["float-left", "float-start"],
["float-right", "float-end"],
@shawwn
shawwn / since2010.md
Created May 11, 2021 09:46
"What happened after 2010?"

This was a response to a Hacker News comment asking me what I've been up to since 2010. I'm posting it here since HN rejects it with "that comment is too long." I suppose that's fair, since this ended up being something of an autobiography.

--

What happened after 2010?

@aparrish
aparrish / understanding-word-vectors.ipynb
Last active December 18, 2025 05:55
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / spacy_intro.ipynb
Last active March 14, 2025 21:43
NLP Concepts with spaCy. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spartanatreyu
spartanatreyu / init.lua
Last active August 13, 2024 16:31
Personal Window Management script (hammerspoon)
--Hammerspoon config to replace Cinch & Size-up (Microsoft Windows style) window management for free
--Windows Vista/7's Areo Snap on MacOS
--By Jayden Pearse (spartanatreyu)
-------------------------------------------------------------------
--Options, feel free to edit these:
-------------------------------------------------------------------
--Set this to true to snap windows by dragging them to the edge of your screen
enable_window_snapping_with_mouse = true
@norcal82
norcal82 / state_names.txt
Last active November 15, 2025 09:43
plain text of US state names
// https://gist.github.com/dblandin/2991970
Alaska
Alabama
Arkansas
American Samoa
Arizona
California
Colorado
Connecticut
@wchargin
wchargin / words
Created February 11, 2014 01:14
/usr/share/dict/words
This file has been truncated, but you can view the full file.
A
A's
AA's
AB's
ABM's
AC's
ACTH's
AI's
AIDS's
@simonista
simonista / .vimrc
Last active January 18, 2026 18:02
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on