Skip to content

Instantly share code, notes, and snippets.

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active July 17, 2025 10:31
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@deoxys314
deoxys314 / 4d.vim
Last active October 14, 2020 15:16
Four-Dimensional Editing in Vim
let s:second = 1
let s:minute = 60 * s:second
let s:hour = 60 * s:minute
let s:day = 24 * s:hour
let s:week = 7 * s:day
let s:month = 30 * s:day
let s:year = 365 * s:day
function! s:get_undo_time(undo_dict) abort
let l:idx = a:undo_dict.seq_cur
@JoakimThorsen
JoakimThorsen / TMC links.md
Last active July 26, 2025 05:21
An attempt at collecting TMC-related resources, websites, mods, servers, and other links.
@guidoism
guidoism / layers.json
Created November 4, 2022 17:16
Keymap Status Viewer
["TAB q w e r t y u i o p BS \nCTL a s d f g h j k l :; RET\nSFT z x c v b n m , . / \u25cc\n \u25cc \u25cc OPT CMD M1 M3 \u2423 M2 \u25cc \u25cc \u25cc \u25cc", " ~ ! @ # $ % ^ 7 8 9 \u25cc \u25cc\n \u25cc \" & * _ \u25cc + 4 5 6 ' |\n \u25cc \u25cc \u25cc \u25cc \u25cc . 0 1 2 3 / \u25cc\n \u25cc \u25cc OPT CMD \u25c9 \u25cc \u25cc M5 \u25cc \u25cc \u25cc \u25cc", " ` \u25cc \u25cc \u25cc \u25cc \u25cc \u25cc \u25cc \u25cc \u25cc \u25cc BS\n \u25cc [ ] ( ) \u25cc \u25cc - = \u25cc \u25cc \\\n \u25cc < > { } \u25cc \u25cc \u25cc \u25cc \u25cc \u25cc \u25cc\n \u25cc \u25cc OPT CMD M4 \u25cc \u25cc \u25c9
@kennypete
kennypete / navigating_the_modes_of_Vim.md
Created April 18, 2024 20:46
Navigating the modes of Vim

Navigating the modes of Vim

This diagram illustrates navigating through Vim’s modes. It was built factoring Vim 9 (i.e., all its modes, including up to two new modes, cr and cvr, in November 2023). Information about the state() and 'showmode' is provided too.

SVG version

Some features are only available in the SVG version. It is not provided directly from within this gist’s files because SVGs do not always play nicely in GitHub (particularly, refusing to display embedded fonts).

The SVG version includes hover text help, which shows pertinent information about the underlying key, command, mode, etc.