Skip to content

Instantly share code, notes, and snippets.

View harrisoncramer's full-sized avatar

Harrison (Harry) Cramer harrisoncramer

View GitHub Profile
@harrisoncramer
harrisoncramer / index.js
Created June 16, 2021 18:33
Script to download all of my articles from my time at National Journal, using Puppeteer.
import puppeteer from "puppeteer";
import { stories } from "./stories.js"; // A list of links to my stories behind the paywall.
import fs from "fs";
import { promisify } from "util";
import { basename } from "path";
import dotenv from "dotenv";
dotenv.config(); // Keep login inside of .env file
const writer = promisify(fs.writeFile);
awscli
bluetoothconnector
circleci
cmake
coreutils
elastic/tap/elasticsearch-full
exercism
findutils
gawk
gh
{
"diagnostic.showUnused": false,
"diagnostic.messageDelay": 0,
"diagnostic.errorSign": "✘",
"diagnostic.warningSign": "⚑",
"diagnostic.infoSign": "",
/*"suggest.noselect": true, // Select first element in autocomplete list*/
// Turn off styling, use plugins instead
"css.validate": false,
"less.validate": false,
set -g default-terminal "screen-256color"
set -g mouse on
set-option -g prefix C-b
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# vim-like pane switching
# Help on this configuration file is here
# https://www.notion.so/Yabai-8da3b829872d432fac43181b7ff628fc
sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
yabai -m rule --add app="^System Preferences$" manage=off
yabai -m rule --add app="^Finder$" manage=off
yabai -m rule --add app="^Audio Hijack$" manage=off
yabai -m rule --add app="^FaceTime$" manage=off
# Navigation
hyper - k : yabai -m window --focus north
hyper - j : yabai -m window --focus south
hyper - f : yabai -m window --toggle zoom-fullscreen
hyper - h : yabai -m window --focus prev \
|| ((yabai -m display --focus prev || yabai -m display --focus last) \
&& yabai -m window --focus last)
hyper - l : yabai -m window --focus next \
|| ((yabai -m display --focus next || yabai -m display --focus first) \
set-option -s escape-time 10
set -g default-terminal "screen-256color"
set -g mouse on
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# vim-like pane switching
package main
import (
"log"
"net/http"
)
func main() {
links := []string{
"http://google.com",
@harrisoncramer
harrisoncramer / .alacritty.yml
Last active January 3, 2022 23:32
Alacritty Configuration
font:
normal:
family: Hack Nerd Font
size: 12.5
cursor:
style:
shape: Block
blinking: Always
blink_interval: 500
colors: # Based off the Kanagawa color scheme
@harrisoncramer
harrisoncramer / parseCsv.py
Created October 8, 2020 12:19
SCOTUS_Analysis
# SCRIPT FOR SCRAPING SCOTUS HEARING TRANSCRIPT
# DATA COMPILED BY R STREET INSTITUTE: https://www.rstreet.org/2019/04/04/supreme-court-confirmation-hearing-transcripts-as-data/
# This script parses the data and searches for key terms, and outputs another (results.csv) file, along with printing a summary
import csv
import sys
import re
def print_inventory(dct):
print("Mentions:")