Skip to content

Instantly share code, notes, and snippets.

Avatar
✒️
pondering

Will Fitzgerald willf

✒️
pondering
View GitHub Profile
@willf
willf / .md
Created Apr 21, 2020
Love in the Days of COVID-19
View .md

I found this video by Arthur C Brooks “Love in the Days of COVID-19” pretty useful and interesting. https://murdocktrust.org/2020/04/love-in-the-days-of-covid-19-a-discussion-with-arthur-c-brooks/ His presentation is only 30 minutes, starting around the 2 minute mark. I have notes, too.

A Fundamental Error: Trying to just get through it.

A Better Response: See it as an occasion to make other people's lives better.

  • Q1 – Are you spending a lot of time being disappointed?
  • Q2 – Are you frittering away a lot of time trying to get more certainty about what's happening?
  • Q2 - Are you lonely?
@willf
willf / prob.md
Last active Nov 12, 2019
Probability of 200,000 people, each with 50,000 images, tripping a False Positive if thee FP rate is 1/10 billion
View prob.md
Denominator False Positive
Rate
Images People Chances
(Images*People)
Prob of at least one FP
1-(1-p)^n
10,000,000,000 1E-10 50,000 200,000 1,000,000,000 63.2%
@willf
willf / spamelotrc.rb
Created Aug 16, 2019
Let us ride ....
View spamelotrc.rb
def save_hashes(out_file, data)
CSV.open(out_file, "wb") do |csv|
keys = data.first.keys
csv << keys
data.each do |hash|
csv << hash.values_at(*keys)
end
end
end
@willf
willf / PY0101EN-1-1-Types.ipynb
Created Jun 20, 2019
Created on Cognitive Class Labs
View PY0101EN-1-1-Types.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willf
willf / PY0101EN-1-1-Types.ipynb
Created Jun 20, 2019
Created on Cognitive Class Labs
View PY0101EN-1-1-Types.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@willf
willf / pitching.md
Last active Jan 7, 2020
How to pitch a little bit
View pitching.md

Learning to pitch a little bit

More honestly: How I learned to pitch, a little bit, for the 1991 Denson book

I will use a minimum of muical jargon, because I just don’t know that much.

Here’s what you probably need to know first:

  1. The shapes,
  2. Major vs minor keys
View random r word like things.txt
refaccimentos
recaH
retardance
rosyn
reluisoient
reesarch
recognosces
rhizophagous
roledistance
regularisee
@willf
willf / words.tsv
Last active Jun 23, 2018
Document frequency of words in Beatles lyrics. `LOVE` is all forms of the word 'love'
View words.tsv
word count percentage of 688 songs
stirring 2 0.29069767441860467
semoc 1 0.14534883720930233
rag 1 0.14534883720930233
digital 1 0.14534883720930233
doctor 7 1.0174418604651163
mammie 1 0.14534883720930233
lear 1 0.14534883720930233
patsy 1 0.14534883720930233
march 2 0.29069767441860467
@willf
willf / non_love_songs.txt
Last active Jun 23, 2018
Beatle songs that don't contain a variant on 'love'
View non_love_songs.txt
(A) Face In The Crowd
(Wish I Could Fly Like) Superman
1822!
20th Century Man
A Gallon Of Gas
A Hard Day's Night
A Little Rhyme
A Long Way From Home
A Rock 'N' Roll Fantasy
A Taste Of Honey
View more_buses.py
from itertools import chain
from sympy.ntheory import factorint
def strp(n,p):
if p == 1:
return str(n)
return str(n) + "^" + str(p)
def strf(f):
return "*".join([strp(k, f[k]) for k in sorted(f.keys())])