Skip to content

Instantly share code, notes, and snippets.

View sprestridge's full-sized avatar

Scott sprestridge

View GitHub Profile
@sprestridge
sprestridge / HoCoBeerTour.html
Last active October 1, 2020 22:24 — forked from cliss/TackyLights.html
Howard County Beer Tour. This small bit of HTML & Javascript takes a series of addresses, and converts that into an ordered list. Each item in the list is an Apple Maps navigation link from [Your Current Location] to [That Brewery]. This file is designed to be hosted in Dropbox and then added to your home screen on your iPhone.
<html>
<head>
<title>Howard County Beer Tour</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<meta name="viewport" content="width=device-width" />
<!--<link rel="apple-touch-icon-precomposed" sizes="120x120" href="put-your-holiday-icon-here" />-->
</head>
<body>
<ol id="list"></ol>
<script type="text/javascript">
@sprestridge
sprestridge / covid19-small-multiples.py
Last active August 8, 2022 09:32
A simple Python script to generate an Edward-Tufte-style, small multiples graph of the case rate (7-day average) by State for the U.S. See the sample output in this blog post: https://sprestridge.net/datavis/python/covid-19/2020/06/05/COVID-Small-Multiples.html
# covid19-small-multiples
import math
import pandas as pd
import numpy as np
import seaborn as sns
# setup for plotting
import matplotlib as mpl
from matplotlib import pyplot as plt
@sprestridge
sprestridge / WordDocIntoDocx.vba
Last active January 26, 2022 15:00
Convert Microsoft Word `.doc` files to Word `.docx` files with VBA
Sub WordDocIntoDocx()
' convert Word .doc files to Word .docx
' Organize all files to be processed in one directory.
' Open Word and press “Alt+ F11” to open the VBA editor.
' Click “Normal” project and click “Insert” after it.
' Choose “Module” to insert a new module in the project.
' Paste the Code, update the file path (strFolder variable), and Run the code.
Dim objWordApplication As New Word.Application