Skip to content

Instantly share code, notes, and snippets.

View philipmw's full-sized avatar

Philip White philipmw

  • Seattle, WA
View GitHub Profile
@philipmw
philipmw / pcc-membership.R
Created January 23, 2021 05:21
Value of PCC's dividend compared to membership cost
CostOfMembership = 60;
AnnualPccSpend = 57 * 12; # chosen to make the two options equivalent
i = 0.07; # interest rate of investing this money
T = 5; # time period we care about, in years
FV_investingMembershipCost = CostOfMembership * (1 + i)^T;
singleYearPPrime = function(x, r, t) {
return(2 / 100 * x * (1 + r)^t); # https://en.wikipedia.org/wiki/Compound_interest#Periodic_compounding
@philipmw
philipmw / fruux-tasks-ics-to-plaintext.sh
Last active May 31, 2020 20:36
convert fruux tasks ICS into plain text
#!/bin/sh -x
###########
# Problem this solves:
#
# I use Fruux (fruux.com) as the backend to my iOS Reminders app. Rather than for actual
# reminders, I used it for general notes, roughly one Reminders entry to a paragraph of notes.
# Later I decided to switch to using the actual iOS Notes app, with my email provider
# (fastmail.fm) as the backend.
#
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Philip's Arq backups",
"Resources": {
"S3Bucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": "pmw-backups-arq"
}
},

Keybase proof

I hereby claim:

  • I am philipmw on github.
  • I am philip (https://keybase.io/philip) on keybase.
  • I have a public key whose fingerprint is 9AB0 6C94 C3D1 F9D0 B9D9 A832 BC54 6FB3 B16C 8B0B

To claim this, I am signing this object:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... scripts/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0