Skip to content

Instantly share code, notes, and snippets.

View seanredmond's full-sized avatar

Sean Redmond seanredmond

View GitHub Profile
@seanredmond
seanredmond / kensington-under-overage-pedal.geojson
Last active April 24, 2022 19:40
Citi Bike trips to or from Kensington, Brooklyn completed in under 30 minutes (green) or 45 minutes (blue)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@seanredmond
seanredmond / all_cycles.md
Last active January 9, 2022 18:28
Brute force generation of all possible metonic cycles. Check historical cycles against these

Output of all_possible_metonic_cycles.py

74901: OOIOOIOOIOOIOOIOIOI
74917: OOIOOIOOIOOIOIOOIOI
75045: OOIOOIOOIOIOOIOOIOI
  • 'O' = An ordinary (12-month) year
  • 'I' = An intercalary (13-month) year

The integers are decimal representation of the cycle if it were a binary number where O = 0 and I = 1

We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
"id" "regnum" "regdate" "author" "title" "lccn" "foreignpub" "interim" "renewed" "renewal_ids" "secretly_foreign" "has_interim" "old_matter_cc" "public_domain_candidate" "entry_text"
"4876fa6d-6cf9-1014-a6cf-a82867d68027" "A65118" "1933-08-22" "Abraham, Robert Morrison" "Winter nights entertainments, a book of pastimes for everybody" "33023651" f f t "R269207" f f f "Abraham, Robert Morrison. Winter nights entertainments, a book of pastimes for everybody, by R. M. Abraham; with an introduction by Lord Baden Powell of Gil well. New York, E. P. Dutton & co., inc. [c1933] 4 p. l., [3]-186 p. incl. front., illus., diagrs. 19½ͨͫ. “First edition.” Includes music. © Aug. 22, 1933; 2c. Aug. 30: aff. Aug. 29; A 65118; E. P. Dutton & co. inc. (33-23651)"
"48466d99-6cf9-1014-a6cf-a82867d68027" "A65106" "1933-08-25" "Adams, Freda Knowles" "Philosophical moods …" "33023339" f f f "" f f t "Adams, Freda Knowles. Philosophical moods … [by] Freda Knowles Adams. [Bedford, Mass.] Priv. print., 1933. 70 l. 22½ͨͫ. Poem
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE copyrightEntries SYSTEM "CopyrightEntries.dtd" []>
<copyrightEntries>
<copyrightEntry id="GUID1" regnum="A50966">
<title>The Land of Pretend.</title>
<author>
<authorName>BELL, EDITH VIOLA</authorName>
</author>
<desc>47 p. illus. [Poems for children]</desc>
<edition>[Limited ed.]</edition>
@seanredmond
seanredmond / a11y-dialog.html
Last active December 4, 2017 15:07
Accessible dialog test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>A11y Popup Test</title>
<style>
div > a[role="button"] {
border: 2px solid black;
padding: 1em;

Keybase proof

I hereby claim:

  • I am seanredmond on github.
  • I am rdmond (https://keybase.io/rdmond) on keybase.
  • I have a public key whose fingerprint is 7F7D 1BC0 29F7 EF79 F5AD D353 9753 8FCC 556D 2FC5

To claim this, I am signing this object:

#!/bin/sh
open -a ~/Applications/Emacs.app "$@"
@seanredmond
seanredmond / twitter_link.rb
Last active December 23, 2015 03:09
Jekyll tag plugin for quickly making links to Twitter user timelines and hastag searches
@seanredmond
seanredmond / cookie-mock.html
Created July 31, 2013 17:51
Mock $.cookie with sinon.js
@seanredmond
seanredmond / betacode.js
Created June 28, 2013 14:39
Applying jquery.betacode-convert.js
$(document).ready(function () {
$('.betacode').betacode2utf8('convert');
});