Skip to content

Instantly share code, notes, and snippets.

View willf's full-sized avatar
✒️
pondering

Will Fitzgerald willf

✒️
pondering
View GitHub Profile
@willf
willf / example_flight.html
Last active October 30, 2015 21:09
Example HTML file with basic flight information for funnel analysis
<html>
<head>
<title>Simple funnel example, with three exit points</title>
<script src="http://archive.org/includes/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="http://www-will.archive.org/includes/analytics.js?v=20fd7fa_854659" type="text/javascript"></script>
</head>
<!-- the data-ec="my-app" means we'll get context counts for participate. data-app="my-app" sets limits (esp for the data-convert
items) on the events to capture.
on load, this will fire an event with {app:"myapp", ec: "myapp", t:"event", ea: "participate"}
-->
@willf
willf / gist:32d72322353f17650ca7
Created December 1, 2015 00:04
ia archive social media messages
SOCIAL MEDIA MESSAGES
MESSAGE 1: KEEP INTERNET ARCHIVE FREE AND AD-FREE
TWITTER:
On #GivingTuesday help keep @InternetArchive free & ad-free forever! Your gift matched 2-1. https://archive.org/donate
FACEBOOK:
Tomorrow is #GivingTuesday. By supporting @InternetArchive you are putting knowledge in the hands of millions of people. Please help keep us free and ad-free forever! If you find us useful, please give what you can today. https://archive.org/donate
The first number is the *base*, The first list is the list of prime rotations in that base, and the third are those rotations in base 10.
For example, in base 4, the numbers {113, 131, 311} (written in base 4) are all prime rotations, representing the prime numbers
{23, 29, 53} (written in base 10).
This is the complete list created from the first 2 million primes.
2 [11] [3]
2 [111] [7]
2 [11111] [31]
2 [1111111] [127]

Practice Resurrection

Luke 20:27-40
Will Fitzgerald
Kalamazoo Mennonite Fellowship
November 6, 2016

Some Sadducees, those who say there is no resurrection, came to him and asked him a question, "Teacher, Moses wrote for us that if a man's brother dies, leaving a wife but no children, the man shall marry the widow and raise up children for his brother. Now there were seven brothers; the first married, and died childless; then the second and the third married her, and so in the same way all seven died childless. Finally the woman also died. In the resurrection, therefore, whose wife will the woman be? For the seven had married her."

Jesus said to them, "Those who belong to this age marry and are given in marriage; but those who are considered worthy of a place in that age and in the resurrection from the dead neither marry nor are given in marriage. Indeed they cannot die anymore, because they are like angels and are children of God, being children of the resurrection.

@willf
willf / stats.rb
Created November 14, 2016 20:54
Basic descriptive statistics using Ruby
# The _percentile_sorted function is adapted from similar code
# released under the Academic Free License, 3.0, written by
# Derrick Pallas, which used to be available at http://derrick.pallas.us/ruby-stats/
# it fixes a bug that can occur if the list of numbers is small.
# Other code more or less from my [first ever gist](https://gist.github.com/willf/187846)
def _percentile_sorted(p, ns)
r = p / 100.00 * (ns.size + 1)
i, fr = r.divmod(1)
@willf
willf / gschsc_2016.m3u
Created December 19, 2016 20:53
Georgia State Christian Harmony Convention 2016
http://shapenote.com/recordings/gschsc/2016/sat/session1/01-67T-notes.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/01-67T-words.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/02-359.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/03-319.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/04-61T.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/05-310.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/06-493.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/07-4.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/08-316.mp3
http://shapenote.com/recordings/gschsc/2016/sat/session1/09-543-notes.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/12/2016-11-25_aoife_o_donovan-magic_hour.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/12/2016-10-28_billy_bragg___joe_henry-gentle_on_my_mind.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/12/2016-04-29_bottle_rockets-dog.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/06/2016-06-03_brett_dennen-cassidy_0.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/12/2016-12-06_cheryl_wheeler-estate_sale.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/12/mtnstage161028_chris_smither-leave_the_light_on.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/12/mtnstage160610_darrell_scott-desperados_waiting_for_a_train.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/11/2016-11-11_foy_vance-children_of_the_revolution.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/06/2016-06-10_hayes_carll-sake_of_the_song.mp3
https://cpa.ds.npr.org/wvpn/audio/2016/12/2016-12-06_indigo_girls-shame_on_you.mp3
@willf
willf / redirect.rb
Last active June 6, 2017 06:13
Follow redirect links
require 'net/https'
require 'uri'
=begin
This simple module provides two methods to follow, and return, the redirects of a URL
It goes to a depth of 10 unless specified otherwise.
Redirect.redirect_urls(<url>) returns a dictionary with the following keys:
:completed : true if reached final direct before hitting limit
:uris : a list of URI structures. The first will be the final destination
:urls: a string version of the above
@willf
willf / chat_transcript.log
Created July 27, 2017 17:37
Chat with Adobe
Did you know you can get answers to most of your Adobe-related questions at help.adobe.com? Find helpful video tutorials, tips for troubleshooting, and user guides for all our products. You can even get answers from members of our vibrant forums community. Visit help.adobe.com. Please hold for the next available agent.
info: You are now chatting with Aishwarya.
Please don’t close the chat window or browser tab since it will end our chat session.
Aishwarya: Hello! Welcome to Adobe support.
Aishwarya: How are you Asher?
Asher Williams: Did you see my question?
Aishwarya: Yes, as I have understood you want to know about the amount that were charged to your account. Right?
Asher Williams: I want to know if you (1) are charging me monthly or annually
Aishwarya: Okay.
Aishwarya: Please allow me 1-2 minutes to review your account details.
@willf
willf / Five_Sevens.md
Last active August 9, 2019 18:04
The introductory section of Hugh of St Victor's _On the Five Sevens_ as a table and a list

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