Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@astrowonk
astrowonk / analyze_backblaze.py
Created November 29, 2020 19:03
Python script to parse and analyze Backblaze Hard Drive Reliability Data raw csv files
import dask.dataframe as dd
import numpy as np
import pandas as pd
import os
import argparse
from dask.diagnostics import ProgressBar
ProgressBar().register()
#requires dask, pandas, numpy.
@astrowonk
astrowonk / nchs_fips.csv
Created February 8, 2023 22:19
NCSH County Codes to FIPS
nchs_code fipsco countyname statename
1001 1001 Autauga Alabama
1002 1003 Baldwin Alabama
1003 1005 Barbour Alabama
1004 1007 Bibb Alabama
1005 1009 Blount Alabama
1006 1011 Bullock Alabama
1007 1013 Butler Alabama
1008 1015 Calhoun Alabama
1009 1017 Chambers Alabama
@astrowonk
astrowonk / custom.ejs
Created October 9, 2023 18:06
An custom.ejs file for a Listing for quarto for external links
```{=html}
<%
// Number of columns
const cols = 3;
// Card alignment
const align = "left";
// Borders
@astrowonk
astrowonk / pylintrc
Last active November 14, 2023 12:39
A pylint config based on the old VS Code "minimal checkers" preference pylintUseMinimalCheckers
# Equivalent to the old pylintUseMinimalCheckers setting in VS Code
# Generated with:
# pylint --disable=all --enable=F,E,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode --generate-rcfile
#
[MAIN]
# Analyse import fallback blocks. This can be used to support both Python 2 and
# 3 compatible code, which means that the block might have code that exists
# only in one or another interpreter, leading to false positives when analysed.
@astrowonk
astrowonk / dad_jokes.csv
Created January 1, 2024 16:16
Dad Jokes
field_joke_opener field_joke_response
Why did the scarecrow win an award? He was outstanding in his field.
Did you hear about the two satellites that got married? The wedding wasn't much, but the reception was incredible.
February can't March. But April May!
Why don't crabs ever give to charity? Because they're shellfish.
Why did the carpenter leave the lumber store? Because he got bored.
Why did the snake go to the doctor? Because he had a frog in his throat.
Why did the ghost buy a box of bandages? Because he had so many BOO BOOs.
What's the difference between the moon and a cheeseburger? The moon is in the sky, a cheeseburger is in THIS guy. (Points to belly)
If I asked you to choose your favorite feature, would you... ...pick your nose?