Skip to content

Instantly share code, notes, and snippets.

@nelsonuhan
nelsonuhan / inland_mk47_qmk.md
Created October 7, 2023 03:23
Flashing QMK firmware onto the Inland MK-47

Flashing QMK firmware onto the Inland MK-47

2023.10.6

Keyboard

Done on a MacBook Pro (Apple Silicon). This worked for me, your mileage may vary.

Preliminaries

@font-face {
font-family: "Sauce Code Pro";
font-style: normal;
font-weight: 200;
src: url(https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/SourceCodePro/Light/complete/Sauce%20Code%20Pro%20Light%20Nerd%20Font%20Complete.ttf?raw=true);
}
@font-face {
font-family: "Sauce Code Pro";
font-style: normal;
@nelsonuhan
nelsonuhan / ranger.vim
Created September 9, 2018 16:48
Use ranger as file/directory picker in vim (GUI MacVim in particular)
" Rudimentary vimscript to use ranger as a file/directory picker
" Nelson Uhan
" 2018.9.9
"
" Uses Vim 8's terminal to open ranger in a new window
" Tested on MacVim 8.1.120, GUI and terminal versions
"
" Put this in your .vimrc (or equivalent)
" :RangerFiles opens ranger as a file picker in a new window
" :RangerDirs opens ranger as a directory picker in a new window
@nelsonuhan
nelsonuhan / quickcursor.lua
Last active August 1, 2017 21:22
A quick-and-dirty QuickCursor replacement in Hammerspoon
-- Quick-and-dirty QuickCursor replacement
-- Inspired by https://github.com/tjluoma/edit-anywhere
function quickcursor()
-- Get active application and window
local window = hs.window.focusedWindow()
local app = window:application()
-- Check to see if we're in a valid text field
-- (1) App is not invalid, (2) Paste is enabled
-- If not, stop