Skip to content

Instantly share code, notes, and snippets.

Will Fitzgerald willf

Block or report user

Report or block willf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 Oct 16, 2018
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())])
View buses.py
# I was sitting on a bus whose number's prime
# factorization was 37 x 113. The prime factorization of the
# number of the bus in front of me was 11 x 373.
# I wonder how many other four-digit bus numbers
# have a prime factorization with exactly those digits?
# pip install sympy
from itertools import chain
from sympy.ntheory import factorint
@willf
willf / Five_Sevens.md
Last active Aug 9, 2019
The introductory section of Hugh of St Victor's _On the Five Sevens_ as a table and a list
View Five_Sevens.md

See: https://en.wikisource.org/wiki/On_the_Five_Sevens

Number Vice Request Gift Virtue Blessing
1 Pride Hallowed be your name Fear of the Lord Humility Kingdom of Heaven
2 Envy Your kingdom come Godliness Kindness Land of the Living
3 Anger Your will be done Knowledge Remorse Consolation
4 Sadness Give us daily bread Strength Hunger for Good Satisfaction
5 Greed Forgive us our debts Counsel Mercy Mercy
6 Gluttony Lead us not into temptation Understanding Cleanness of Heart Vision of God
You can’t perform that action at this time.