Skip to content

Instantly share code, notes, and snippets.

View tjhanley's full-sized avatar
🏒

Thomas Hanley tjhanley

🏒
View GitHub Profile
@tjhanley
tjhanley / LICENSE
Last active April 19, 2026 02:53
NecroTomicon — A Personal Operating System in Plain Markdown
MIT License
Copyright (c) 2026 tjhanley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@tjhanley
tjhanley / README.md
Last active March 24, 2026 00:03
Claude Code Powerline Statusline - Catppuccin Mocha

Claude Code Powerline Statusline -- Catppuccin Mocha

A powerline-style status bar for Claude Code using Catppuccin Mocha colors and Nerd Font glyphs.

Claude Code Powerline Statusline

Segments (left to right):

Segment Color Content
@tjhanley
tjhanley / claude-statusline-README.md
Last active April 2, 2026 05:46
Claude Code custom statusline — Catppuccin Mocha powerline style with git, context, cost, duration, agent, and vim mode segments

Claude Code Statusline — Catppuccin Mocha Powerline

A custom statusline for Claude Code with Catppuccin Mocha colors and Nerd Font powerline segments.

image

Segments

| Segment | Color | Content |

@tjhanley
tjhanley / referrer.rb
Created September 2, 2021 16:43
url slug
class Referrer < ActiveRecord::Base
URL_SLUG_REGEX = /^[a-z0-9-]+$/i
attr_accessible :token, :campaign, :campaign_id, :user_id, :lead_id
belongs_to :campaign
belongs_to :user
belongs_to :lead
has_many :referral_click_throughs
@tjhanley
tjhanley / setup.md
Last active October 17, 2021 18:38
My Dev Setup

Engineering Home

Developer Setup

Brew

Install Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Shell optional

@tjhanley
tjhanley / README.md
Created March 13, 2016 23:43
Angular Readme

My First Angular

Section 1

Best Practices

  • MV* separation
  • DRY
  • Don't hack

Don't write bad

{
"DueDate": "2013-02-15",
"Balance": 1990.19,
"DocNumber": "SAMP001",
"Status": "Payable",
"Line": [
{
"Description": "Sample Expense",
"Amount": 500,
"DetailType": "ExpenseDetail",
@tjhanley
tjhanley / 0_reuse_code.js
Created March 11, 2016 17:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tjhanley
tjhanley / shuffle-people.coffee
Created January 26, 2015 17:47
Shuffle Users
# Description:
# Generates a random list of users in the room
#
# Commands:
# hubot djs - gathers a list of users and shuffles them
#
# Author:
# tjhanley
module.exports = (robot) ->
robot.respond /djs/i, (msg) ->
@tjhanley
tjhanley / fdn.js
Created November 19, 2014 22:16
Is this okay to call in this order?
//= require foundation
// Contains register_media call
//= require shared_inits
$(function(){ $(document).foundation(); });