Skip to content

Instantly share code, notes, and snippets.

View DavidMertz's full-sized avatar

David Q Mertz DavidMertz

  • KDM Training
  • Maine, USA
  • 10:16 (UTC -04:00)
View GitHub Profile

Why is blockchain a thing (some) smart people care about?!

April 2021

Bruce Schneier has good comments in his post Blockchain and Trust which partly inspire or inform my comments.

I'm very honestly puzzled about the enthusiasm surprisingly many people have about blockchain technologies. I understand the technical aspects of it very

Alex Martelli on _Cleaning Data_
I made it -- going far deeper into the text than I had planned to do on a
"first skim" because the text is worth it. Here's my review, which I do not
believe I shall need to edit.
I started reviewing this text with very high expectations.
First, I know the author, and I know he thinks sharply and writes engagingly,
convincingly, and clearly, to present his thinking.
@DavidMertz
DavidMertz / gerrymander.py
Created March 26, 2021 19:07
Gerrymandering maximum disenfranchisement
from math import ceil, floor
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_theme()
import numba
@numba.njit
def max_advantage(ruling=0.50, districts=1, population=10_000_000):
@DavidMertz
DavidMertz / I_before_e
Last active October 27, 2020 14:03
I before e
...except in a zeitgeist of feisty counterfeit heifer protein freight
heists reining in weird deified beige beings and their veiny and eidetic
atheist foreign schlockmeister neighbors, either aweigh with feigned
absenteeism, seized by heightened heirloom forfeitures (albeit deigned
under a kaleidoscope ceiling weighted by seismic geisha keister sleighs)
or leisurely reimbursing sovereign receipt or surveillance of eight veiled
and neighing Rottweilers, herein referred to as their caffeinated sheik's
Weimaraner poltergeist wieners from the Pleiades.
@DavidMertz
DavidMertz / schedule.md
Last active November 24, 2020 19:58
Schedule
Course Name Date Start (PST)
(sklearn) Advanced May 13, 2020 10:00
(clean) Tabular Formats Jun 01, 2020 11:00
(clean) Value Imputation Jun 10, 2020 10:00
(clean) Anomaly Detection Jun 15, 2020 10:00
(clean) Feature Engineering Jun 19, 2020 10:00
(clean) Hierarchical and Other Jul 01, 2020 10:00
(sklearn) Beginning Jul 06, 2020 10:00
(sklearn) Intermediate Jul 13, 2020 10:00
@DavidMertz
DavidMertz / gist:23f19b03107d6833a74dd11481f47272
Last active March 9, 2020 15:28
Covid-19 in Central Maine
This post has a serious tone, because it is important.
Covid-19 will come to Dexter, and to central Maine generally. It is not
a question of if, but when. People you know will die, and more people will
become gravely ill. This is a sad reality, but it is reality. The
demographics of our town and our state mean that Maine will be more
impacted than most places (this particular disease has a CFR—case
fatality rate—strongly positively correlated with age; children, happily,
will not tend to die of this).
@DavidMertz
DavidMertz / Cleaning Data
Last active February 26, 2020 20:44
Cleaning Data
Cleaning Data for Effective Data Science
Doing the other 80% of the work
In order for something to become clean, something else must become dirty.
–Imbesi's Law of the Conservation of Filth
It is something of a truism in data science, data analysis, or machine learning
that most of the work needed to do your actual work lies in cleaning your data.
The subtitle of this work alludes to a commonly assigned percentage. A keynote
speaker I listened to at a data science conference a few years ago made a joke—
@DavidMertz
DavidMertz / Medical-Power-Of-Attorney.txt.asc
Created January 16, 2020 02:44
Medical Power of Attorney and Medical Directions for End-of-Life
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
DURABLE POWER OF ATTORNEY FOR HEALTH CARE
I, David Quintyn Mertz, of 45 Main Street, Dexter ME 04930 USA, being of sound
mind, voluntarily create this Durable Power of Attorney for Health Care.
PRIOR DESIGNATIONS
@DavidMertz
DavidMertz / Final-Will.txt.asc
Last active January 9, 2022 03:42
Final Will of David Mertz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
January 8, 2022
I, David Quintyn Mertz, residing at 45 Main Street, Dexter Maine 04930,
declare this to be my Will, and I revoke any and all wills and codicils
I previously made.
Proof of not-earlier-date: New York Times headline for today's date:
@DavidMertz
DavidMertz / thread_kill run
Created July 21, 2019 19:24
Python loops that might terminate
(base) 530-tmp % python thread_kill.py
[1, 2, 3, 4, 5, 1]
[1, 2, 3, 4, 5, 1, 2]
[1, 2, 3, 4, 5, 1, 2, 3]
[1, 2, 3, 4, 5, 1, 2, 3, 4]
[1, 2, 3, 4, 5, 1, 2, 3, 4, 5]
[1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1]
[1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2]
[1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3]
[1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4]