Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View justintanner's full-sized avatar
🏠
Working from home

Justin Tanner justintanner

🏠
Working from home
View GitHub Profile
@justintanner
justintanner / README.md
Last active January 17, 2024 01:21
Justin's List of useful AI Developer Tools

Justin's List of useful AI Developer Tools

Tools

ChatGPT

Best in class LLM for everything, 3.5 is free 4.0 is paid.

https://chat.openai.com/

@justintanner
justintanner / emacs_hammerspoon.lua
Created August 22, 2022 17:42
Quick fix allowing Google Sheets to use Ctrl+Shift+[n/p/b/f]
-- Emacs Hammerspoon Script
-- Author: Justin Tanner
-- Email: work@jwtanner.com
-- License: MIT
-- What does this script do?
-- Allows you to have *most* Emacs keybindings in other apps.
-- Ctrl-Space space be used to mark and cut text just like Emacs. Also enables Emacs prefix keys such as Ctrl-xs (save).
-- Installation
@justintanner
justintanner / keys.el
Created April 6, 2019 18:30
Un-binding similar Emacs keys such as Ctrl+xf and Ctrl+x, Ctrl+f
;; C-a start line
;; C-b backward character
;; C-c prefix
(global-set-key "\C-c\C-c" 'comment-region)
(global-set-key "\C-cc" 'comment-region)
;; C-d delete character
;; C-e end of line
;; C-f forward character
;; C-g cancel / escape
;; C-h prefix / chord
@justintanner
justintanner / text_selection_with_ctrl_space.ahk
Created April 6, 2019 17:16
Can AutohotKey emulate Emac's text selection?
#SingleInstance
#Installkeybdhook
#UseHook
SetKeyDelay 0
global selecting := False
SendWithShift(keys)
{
If (selecting)
@justintanner
justintanner / hammerspoon_cord_keys.lua
Created April 6, 2019 17:14
Chord keys in Hammerspoon
-- Can Hammerspoon create chord / prefix keys like Emacs?
local ctrlXActive = false
local hotkeyModal = hs.hotkey.modal.new()
function startCtrlX()
ctrlXActive = true
hs.timer.doAfter(1, clearCtrlX)
end
@justintanner
justintanner / emacs_hammerspoon.lua
Last active April 29, 2023 23:58
Emacs Hammerspoon Script
--- Emacs Hammerspoon Script
-- Author: Justin Tanner
-- Email: work@jwtanner.com
-- License: MIT
--- What does this thing do?
-- Allows you to have Emacs *like* keybindings in apps other than Emacs.
-- You can use Ctrl-Space to mark and cut text just like Emacs. Also enables Emacs prefix keys such as Ctrl-xs (save).
--- Installation