Skip to content

Instantly share code, notes, and snippets.

View joshlawton's full-sized avatar
👨‍💻
Coding

Josh L joshlawton

👨‍💻
Coding
  • Atlanta, Georgia
  • 01:58 (UTC -04:00)
View GitHub Profile
@mattmc3
mattmc3 / optparsing_demo.zsh
Last active April 16, 2025 01:58
Zsh option parsing example
# Manual opt parsing example
#
# Features:
# - supports short and long flags (ie: -v|--verbose)
# - supports short and long key/value options (ie: -f <file> | --filename <file>)
# - supports short and long key/value options with equals assignment (ie: -f=<file> | --filename=<file>)
# - does NOT support short option chaining (ie: -vh)
# - everything after -- is positional even if it looks like an option (ie: -f)
# - once we hit an arg that isn't an option flag, everything after that is considered positional
function optparsing_demo() {
@joshlawton
joshlawton / Folder and Records Organization.md
Created February 19, 2020 23:13
This is how I organize and structure all the stuff of life.

Folder and File/Records Organization

In December 2012, while shopping at the Container Store in Buckhead, I stumbled across a book that detailed how to organize almost all the stuff that we inevitably encounter in what David Allen refers to as, "the business of life."

I took pictures of each page of the book and recreated the structure here to make it easier to peruse and edit.

Personal

Action Organizer

"Tickler Folder"