Skip to content

Instantly share code, notes, and snippets.

View dansteeves68's full-sized avatar

Dan Steeves dansteeves68

View GitHub Profile
@dansteeves68
dansteeves68 / darwin-configuration.nix
Last active May 26, 2020 16:13
A nix-darwin configuration file
{ config, pkgs, ... }:
{
environment.systemPackages =
[
pkgs.awscli
pkgs.csvkit
pkgs.direnv
pkgs.git
pkgs.gnupg
@dansteeves68
dansteeves68 / daily_menu_from_email.py
Created April 15, 2013 11:12
Create a printable lunch menu from latest Wedge format
text = open('lunch.txt', 'r')
foo = ''.join(text.readlines()).split('5.00\n')
lunches = []
for bar in foo:
baz = bar.split('\n')
(day, meal) = baz[2].split('\t')
lunches.append('%s - %s - %s - %s' % (day, baz[0], meal, baz[3].lstrip('Option: ')))