Skip to content

Instantly share code, notes, and snippets.

@itsmattsoria
itsmattsoria / gistfil1.textile
Last active March 19, 2024 04:30
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@iangreenleaf
iangreenleaf / gist:b206d09c587e8fc6399e
Last active April 2, 2024 18:48
Rails naming conventions

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.