Skip to content

Instantly share code, notes, and snippets.

@chriscorrea
chriscorrea / init.lua
Created March 1, 2025 03:33
My PaperWM init.lua key bindings
PaperWM = hs.loadSpoon("PaperWM")
PaperWM:bindHotkeys({
-- switch to a new focused window in tiled grid
focus_left = {{"ctrl", "alt", "cmd"}, "left"},
focus_right = {{"ctrl", "alt", "cmd"}, "right"},
focus_up = {{"ctrl", "alt", "cmd"}, "up"},
focus_down = {{"ctrl", "alt", "cmd"}, "down"},
-- move windows around in tiled grid
swap_left = {{"ctrl", "alt", "cmd"}, ","},
@chriscorrea
chriscorrea / keybase.md
Created June 12, 2023 01:43
Keybase proof

Keybase proof

I hereby claim:

  • I am chriscorrea on github.
  • I am chriscorrea (https://keybase.io/chriscorrea) on keybase.
  • I have a public key whose fingerprint is C007 6E12 7004 7864 45BD 2784 2864 117B 146E 30E3

To claim this, I am signing this object:

@chriscorrea
chriscorrea / day1_1.py
Last active December 1, 2022 19:11
Advent of Code 2022: Day 1, Part 1
from functools import reduce
file = open('day1.txt')
data = file.read()
#create list of elves, each item containing string of snack values
elves = data.split('\n\n')
#reduce function
def sum_snacks(first, second):
@chriscorrea
chriscorrea / hz.json
Created October 27, 2020 21:04
Hector Support Data Visualization
{
"config": {
"view": {"continuousWidth": 400, "continuousHeight": 300, "strokeWidth": 0},
"legend": {
"labelFontSize": 16,
"labelLimit": 200,
"labelPadding": 6,
"rowPadding": 10,
"titleFontSize": 16
},