Skip to content

Instantly share code, notes, and snippets.

View antonrasmussen's full-sized avatar
🥁
Rockin'

Anton Rasmussen antonrasmussen

🥁
Rockin'
  • Seattle, WA
  • 19:58 (UTC -07:00)
View GitHub Profile
@antonrasmussen
antonrasmussen / Apriori.py
Last active March 28, 2024 03:27 — forked from marcelcaraciolo/Apriori.py
Apriori.py
"""
Helper functions for creating frequent item sets using the Apriori algorithm.
"""
def createC1(dataset):
"Create a list of candidate item sets of size one."
c1 = []
for transaction in dataset:
for item in transaction:
if not [item] in c1:
@antonrasmussen
antonrasmussen / wtf_dispatches.py
Created September 17, 2022 00:46
Scraping Marc Maron's WTF Dispatches
from bs4 import BeautifulSoup
from urllib.request import urlopen
import time
html_doc = "Dispatches — WTF with Marc Maron Podcast.html"
date_list = []
url_list = []
@antonrasmussen
antonrasmussen / README.md
Created September 2, 2022 18:37 — forked from djm/README.md
Create a Chrome GitHub Repo Search Shortcut
#!/usr/bin/python
import sys
import datetime
# Calculates death probabilities based on Social Security
# actuarial tables for a given group of people.
# Run with a list of ages/genders and an optional timespan (or year in the future):
# python actuary.py 63m 80m 75f 73m 10