Skip to content

Instantly share code, notes, and snippets.

Avatar

Neal McBurnett nealmcb

View GitHub Profile
@nealmcb
nealmcb / syzygy_astropy.py
Created Nov 23, 2021
find syzygy / equinox / solstice with astropy
View syzygy_astropy.py
# Find the nearest syzygy (solstice or equinox) to a given date.
# Solution for https://stackoverflow.com/questions/55838712/finding-equinox-and-solstice-times-with-astropy
# TODO: need to ensure we're using the right sun position functions for the syzygy definition....
import math
from astropy.time import Time, TimeDelta
import astropy.coordinates
from scipy.optimize import brentq
from astropy import units as u
View explore_noom_export.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nealmcb
nealmcb / README.rst
Last active Mar 18, 2021
test gist command
View README.rst

GIST

gist edit works!

'gist' is a command line interface for working with github gists. It provides several methods for inspecting a users gists, and the ability to easily create them.

@nealmcb
nealmcb / get_history.sh
Created Oct 12, 2020 — forked from TravelingTechGuy/get_history.sh
Get your Chrome history as a CSV file
View get_history.sh
#!/bin/bash
# Locate the history file in your profile, and copy it to the same folder as this script.
# On Mac: ~/Library/Application\ Support/Google/Chrome/Default/History
# On Windows: C:\Users\YOUR USER NAME\AppData\Local\Google\Chrome\User Data\Default\History
sqlite3 History <<!
.headers on
.mode csv
.output out.csv
View corla17_explore.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nealmcb
nealmcb / CivilTransparency.ipynb
Last active Aug 7, 2019
Civil Transparency Experiments in Python
View CivilTransparency.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nealmcb
nealmcb / gamma.ipynb
Last active Aug 22, 2018
Explanation of gamma in risk-limiting audits.
View gamma.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nealmcb
nealmcb / sampling_with_tickets.ipynb
Created Jun 19, 2018
Demo of Ron Rivest's Election Audit Sampling with Tickets
View sampling_with_tickets.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nealmcb
nealmcb / ecdsa_to_bitocin_addy.py
Last active May 26, 2021
Calculate Bitcoin address corresponding to given ECDSA private key. Handy for verifying document timestamps provided by OriginStamp.org.
View ecdsa_to_bitocin_addy.py
#!/usr/bin/env python
"""Calculate Bitcoin address corresponding to given ECDSA private key.
Handy for verifying document timestamps provided by OriginStamp.org.
Usage: ecdsa_to_bitocin_addy.py ecdsa_private_key # that's a 64-character hex string
Prerequisite:
pip install ecdsa
View keybase.md

Keybase proof

I hereby claim:

  • I am nealmcb on github.
  • I am nealmcb (https://keybase.io/nealmcb) on keybase.
  • I have a public key whose fingerprint is EDC0 36EB 2397 A000 D7CD 417B B94C 992F 3314 8156

To claim this, I am signing this object: