Skip to content

Instantly share code, notes, and snippets.

@endolith
endolith / readme.md
Last active April 10, 2022 22:56
Tonnetz on a torus in POV-Ray
@endolith
endolith / AutoCorrect.ahk
Last active March 9, 2026 23:53
AutoCorrect AutoHotkey spelling script
; c = case sensitive
; c1 = ignore the case that was typed, always use the same case for output
; * = immediate change (no need for space, period, or enter)
; ? = triggered even when the character typed immediately before it is alphanumeric
; r = raw output
;------------------------------------------------------------------------------
; CHANGELOG:
;
; 2011-03-21 and after: See readme.md
@endolith
endolith / pidgin.ahk
Created March 22, 2011 03:58
Pidgin's autocorrect dict converted to AHK format
:?C:it' snot::it's not
:?C:it snot::it's not
:?C:its a::it's a
:?C:its the::it's the
::abbout::about
::abotu::about
::abouta::about a
::aboutit::about it
::aboutthe::about the
::abscence::absence
@endolith
endolith / MSword.ahk
Created March 22, 2011 04:49
MS Word autocorrect list converted to AHK format
::(c)::©
::(r)::®
::(tm)::™
::...::…
::abbout::about
::abotu::about
::abouta::about a
::aboutit::about it
::aboutthe::about the
::abscence::absence
@endolith
endolith / readme.md
Created March 22, 2011 04:53
Wikipedia's autocorrect list converted to AHK format
@endolith
endolith / Juno_OLE_to_mbox.py
Created May 28, 2011 17:56
Convert Juno 4 OLE messages to MBOX format
# -*- coding: utf-8 -*-
"""
Created on Sat May 28 09:53:24 2011
@author: [email protected]
"""
import mailbox
import OleFileIO_PL
from collections import defaultdict
@endolith
endolith / kernel_density.py
Last active May 1, 2018 03:53
Multidimensional Kernel Density Estimation in SciPy
# -*- coding: utf-8 -*-
"""
Created on Sun Jun 19 20:32:51 2011
@author: [email protected]
"""
import numpy as np
import scipy.stats as stats
from matplotlib.pyplot import imshow, scatter
@endolith
endolith / readme.md
Last active June 10, 2016 03:17
Mono and stereo sine .wav generation with PySoundFile
@endolith
endolith / .gitignore
Last active December 3, 2025 16:36
Launch ambiguous files in the appropriate program
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@endolith
endolith / apptabsnotify.js
Created August 22, 2011 06:19
App tab notification Stylish
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*You may define your own rules here or change existing rules*/
/*For example the first rule applies when the tab title contains "says"*/
/*.tabbrowser-tab[pinned][label*="("][label*="Buzz"]:not([selected]),
.tabbrowser-tab[pinned][label*="("][label*="Gmail"]:not([selected]),
.tabbrowser-tab[pinned][label*="("][label*="Reader"]:not([selected]),
.tabbrowser-tab[pinned][label*="("][label*="Facebook"]:not([selected]),*/
.tabbrowser-tab[pinned][titlechanged][label*="says"]:not([selected]) {