Skip to content

Instantly share code, notes, and snippets.

# -*- mode: shell-script; sh-shell: zsh; sh-basic-offset: 4; sh-indentation: 4; coding: utf-8 -*-
local -r project_name="Java"
cd-project-today-dir "${project_name}"
font-family = MesloLGS NF
background = 000000
window-padding-x = 16
window-padding-y = 16
@travisbhartwell
travisbhartwell / process_messages.py
Last active June 26, 2025 22:16
Export LinkedIn Messages to Markdown
#!/usr/bin/env python3
from collections import defaultdict
import csv
from dataclasses import dataclass
from datetime import datetime
from pathlib import Path
import sys
@travisbhartwell
travisbhartwell / myproject-lib.coverage
Created June 21, 2025 22:03
Code coverage for MyProject
#: # -*- mode: shell-script; sh-shell: bash; sh-basic-offset: 4; sh-indentation: 4; coding: utf-8 -*-
#: # shellcheck shell=bash
:
#: # MyCmd Project Command Group Library
#: # Library for Project Task Runner Functionality
:
4: set -o nounset -o errexit -o errtrace -o pipefail
:
4: (return 0 >/dev/null 2>&1) || {
-: echo >&2 "$0 is a library only meant to be sourced."
@travisbhartwell
travisbhartwell / README.md
Created February 24, 2023 05:53
My Via JSON file for my Controller Works mini42

This is my modification of the default mini42 layout with the following changes:

  • Changed Left Control to ESC. This matches how I configure "regular" keyboards, changing Caps to Escape.
  • Changed the left Space to Left Control.
  • Moved the arrow keys in the lower layer to HJKL.

I am sure I will tweak these as I get used to my new keyboard and upload my changes here.

If it wasn't obvious, I am a developer that uses vim keybindings where-ever possible.

Title: "The One with the NFTs"
Scene 1:
(The gang is sitting in Central Perk, discussing their latest finds on the internet)
Rachel: "Guys, have you heard of these things called NFTs? They're like digital collectibles or something?"
Monica: "Yeah, I've seen them on Instagram. People are paying crazy amounts of money for them."
from dialysis_data.data import TreatmentLog, make_json_converter
from visidata import VisiData, TableSheet, Column, date
@VisiData.api
def open_dialysis(vd, p):
"""Dialysis Data Format"""
return DialysisDataSheet(p.name, source=p)
from dataclasses import dataclass
from datetime import date, timedelta
from decimal import Decimal
from enum import Enum
class SolutionStrength(Enum):
YELLOW = "Yellow"
GREEN = "Green"
import iterm2
import iterm2.tmux
async def main(connection):
# This is an example of using an asyncio context manager to register a custom control
# sequence. You can send a custom control sequence by issuing this command in a
# terminal session in iTerm2 while this script is running:
#
# printf "\033]1337;Custom=id=%s:%s\a" "shared-secret" "create-window"