Skip to content

Instantly share code, notes, and snippets.

View 75th's full-sized avatar

Lanny Heidbreder 75th

  • Central Arkansas, USA
View GitHub Profile
@75th
75th / argyll-guide.md
Created August 9, 2026 01:23
Guide to using Argyll CMS to create ICC profiles for scanners

Guide to using Argyll CMS to create ICC profiles for scanners

(A.K.A. "What to Do When CoCa Doesn't Work")

This guide may help you if one or more of these things that describe me also describe you:

  • Comfortable working on the command line
  • Bought a LaserSoft Advanced IT8 target without realizing that support for it is spottier than for the regular IT8 target
  • Have a .cxf file for your calibration target rather than a .cie file or a .txt file
  • Missed the bit on [scanning.guide] where it tells you you should scan the calibration target at less than 600 dpi
@75th
75th / scroll-horizontal.js
Last active October 17, 2016 16:52
Convert all scrolling to horizontal scrolling
// Make vertical mousewheel movement scroll a page horizontally.
//
// Seems to work well with Mac trackpads and Magic Mouse on macOS.
// Also works with either scroll direction on macOS.
// If body has class 'scroll-horizontal'
if(document.body.className.split(' ').indexOf('scroll-horizontal') !== -1) {
['wheel', 'mousewheel', 'DOMMouseScroll'].forEach(function(eventName) {
// Test for browser support of event
if(typeof window['on' + eventName] !== 'undefined') {
@75th
75th / state-abbreviations.json
Last active October 11, 2019 07:42
US state abbreviations in JSON
{
"al": { "full": "alabama", "other": ["ala"] },
"ak": { "full": "alaska", "other": ["alas"] },
"az": { "full": "arizona", "other": ["ariz"] },
"ar": { "full": "arkansas", "other": ["ark"] },
"ca": { "full": "california", "other": ["calif", "cal"] },
"co": { "full": "colorado", "other": ["colo", "col"] },
"ct": { "full": "connecticut", "other": ["conn"] },
"de": { "full": "delaware", "other": ["del"] },
"dc": { "full": "district of columbia", "other": ["washington dc", "wash dc"] },

Keybase proof

I hereby claim:

  • I am 75th on github.
  • I am lanny (https://keybase.io/lanny) on keybase.
  • I have a public key whose fingerprint is 289E F59E 082B EE68 6222 B893 B2A4 430B C0F9 403F

To claim this, I am signing this object:

@75th
75th / rot.sh
Last active January 25, 2019 16:06
A Bash script for Caesar ciphers. I needed (well, wanted) a tool to do ROT-n ciphers for arbitrary n. So here it is. If n is not provided, it defaults to ROT-13. No ROT-5 for numerals as yet. This is my first shell script for public consumption; feedback is eagerly welcome, but please be gentle.
#! /bin/bash
# Usage: rot [base] string
#
# Base is assumed to be 13 if not specified.
#
# Bases not in 0-25 are taken modulo 26; negatives are increased by
# 26es until they're positive. Thus, any integer should work
# as expected.
@75th
75th / menu-item-widths.less
Created May 23, 2012 22:10
LESS: Items of varying width side-by-side, filling up a fixed width
/*
* Sometimes, with a horizontal navigation menu, you need the items
* to vary in width, but to all fill up a predetermined width.
*
* Doing this with normal CSS involves annoying, tedious arithmetic,
* and making changes is painful.
*
* This snippet uses LESS to make maintaining such a menu easy.
*/