Skip to content

Instantly share code, notes, and snippets.

quad / hey.rb
Created Dec 8, 2012
hey! a minimalist CRM
View hey.rb
#!/usr/bin/env ruby
# hey! a minimalist CRM for
# hey tells you one thing you should do regularly, but haven't done lately.
# $ lf hey
# 1 @phone Mom (+1 234 567 8901) +family
# 2 @skype Dad +family
# 3 @email mentor
quad /
Created Oct 28, 2020
Block out my work calendar with my personal events
function hashify(hash, [key, value]) {
hash[key] = value;
return hash;
function eventId(event) {
if (event.isRecurringEvent()) {
return event.getId() + "-" + event.getStartTime().toISOString() + "-" + event.getEndTime();
def simplify_parens(expr):
Remove all unnecessary parenthesis for a simple algebra-like string. It maintains the brackets, so any operator can be swapped for any other and the resulting expression will have the same results before and after parenthesis reduction.
>>> simplify_parens('a')
>>> simplify_parens('a + b')
quad /
Last active Jan 23, 2020
Convert USAA Bank Statements to Ledger Transactions
import datetime
import enum
import re
import sys
import types
from collections import namedtuple
from decimal import Decimal
from operator import attrgetter
quad / Makefile
Last active Jan 22, 2019
Make macOS (OSX) Greyscale from the terminal (CLI)
View Makefile
tgray: tgray.c
clang -g -std=c11 -Wall -framework ApplicationServices $^ -o $@
quad /
Last active Sep 11, 2018
Things: My Consumer Lifestyle, Enumerated
# The most important line in any shell program.
# Sometimes, though, I wish it worked in the [shebang][].
set -e
quad / Makefile
Last active Aug 3, 2018
Find a cycle in a linked list, for all your tech interview problem needs.
View Makefile
CFLAGS=-Wall -Wextra -Werror -std=c99 -O
all: cycle
cycle: cycle.c
quad / multi-browser.vala
Created May 26, 2009
Minimal WebKit browser examples in Vala
View multi-browser.vala
using GLib;
using Gtk;
using WebKit;
public class Browser : Window {
private const string URL = "";
private Notebook notebook;
public Browser() {
quad /
Created Apr 11, 2017
Keybase Proof

Keybase proof

I hereby claim:

  • I am quad on github.
  • I am quad ( on keybase.
  • I have a public key ASBxDFR1P5fGthosSBX-iUd18uAFSCpNZdqCY0yE0QaPvQo

To claim this, I am signing this object:

quad / dci_bench.rb
Last active Apr 3, 2017
Because Rubyists knows the value of everything, but the cost of nothing.
View dci_bench.rb
require 'benchmark'
require 'delegate'
class Direct
def method
def base