Skip to content

Instantly share code, notes, and snippets.

View itod's full-sized avatar

Todd Ditchendorf itod

View GitHub Profile
@itod
itod / split_keyboards.md
Last active June 18, 2025 03:13
Every "split" mechanical keyboard currently being sold that I know of
@itod
itod / app-prototyping-apps.txt
Last active February 4, 2025 02:47
App-Prototyping Apps
App Prototyping tools
============
https://www.adobe.com/products/xd.html
https://www.figma.com/
http://principleformac.com/
https://kiteapp.co/
https://framer.com/
https://www.flinto.com/
https://www.invisionapp.com/studio
https://www.invisionapp.com/craft
@itod
itod / remove_prefix.applescript
Last active January 5, 2025 07:02
AppleScript to remove a common prefix from the name of all files in a given folder.
set path_ to (get path to desktop as string) & "FOLDER NAME HERE"
set prefix_ to "PREFIX HERE"
tell application "Finder"
set dir_ to folder path_
set files_ to items of dir_ whose name of it starts with prefix_
set start_ to (get length of prefix_) + 1
repeat with file_ in files_
set oldname_ to name of file_
set end_ to length of oldname_
@itod
itod / Foo.m
Last active February 23, 2024 17:22
ObjC OpenSUSE
#import <stdio.h>
#import <Foundation/Foundation.h>
// sudo zyp in gcc-c++ gcc-objc gnustep-base-devel
// gcc -lobjc -lgnustep-base -fconstant-string-class=NSConstantString -fobjc-exceptions Foo.m -o Foo
// https://web.archive.org/web/20120816003625/http://blog.lyxite.com:80/2008/01/compile-objective-c-programs-using-gcc.html
@interface Foo : NSObject
@end
@itod
itod / php.vintage_grammar
Created August 8, 2023 23:18
PHP Syntax Highlighting Grammar for @VintageText
file
: thing+
;
@entryPoint
thing
: semi
| pi_beg
| pi_end
| func_decl
@itod
itod / gen.sh
Created August 7, 2023 17:33 — forked from rmorey/gen.sh
List of Uniform Type Identifiers
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep uti: | cut -c 29- | sort | uniq > utis.txt
@itod
itod / extract_iphoto_originals.applescript
Last active April 8, 2022 14:55
Recursively extract Original photos from an iPhoto library
set _srcPath to ((get path to desktop) & "Backup:Pictures" as string)
set _destPath to ((get path to desktop) & "Out" as string)
on processDir(_parent)
tell application "Finder"
set _parentName to (get name of _parent as string)
set _kids to (get every item of _parent whose name is not ".")
if "Thumbs" is equal to _parentName then
return
else if "Originals" is equal to _parentName then
@itod
itod / determiners.txt
Last active September 22, 2021 15:28
German Determiners + Adjectives
NOMINATIV
1. Subject
2. Predicate Nominative
ACCUSATIV
1. Direct Object
2. Accusative Prepositions
3. Expressions of Time
DATIV
@itod
itod / fluid_gmail.js
Last active July 9, 2020 10:42
Gmail Fluid App Userscript
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var newBadge = '';
var res = findInboxAnchorMatchResult();
if (res) {
@itod
itod / voice_dictation_broken.txt
Created April 4, 2019 14:26
Chatterbug iOS App Showstopper Bug: Voice dictation completely broken in Self-lessons
# SETUP
## Device: iPhone SE
## OS: iOS 12.2
## Chatterbug App: 0.15.2 (20180806.1239.55)