Skip to content

Instantly share code, notes, and snippets.

View patcon's full-sized avatar

Patrick Connolly patcon

View GitHub Profile
@patcon
patcon / _.md
Created November 21, 2017 19:53 — forked from tschaub/_.md
TopoJSON Time Zones

TopoJSON Time Zones

The result is this 181 KB timezones.json (36 KB with gzip)

@patcon
patcon / StaticXFA2AcroForm.java
Created October 16, 2020 00:42 — forked from JoelGeraci-Datalogics/StaticXFA2AcroForm.java
This Gist will convert a Static XFA Form to an AcroForm by removing the XFA dictionary.
/*
* Copyright Datalogics, Inc. 2015
*/
package pdfjt.cookbook.forms;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
@patcon
patcon / gmail.rc
Created March 7, 2025 19:34 — forked from flatcap/gmail.rc
neomutt config gmail
# To use: change gmail's settings to:
# enable imap:
# Gmail Settings
# Forwarding and POP/IMAP
# create an app password
# App passwords
# https://myaccount.google.com/security
set imap_login = ""
set imap_pass = "XXXXXXXXXXXXXXXX"

Except for the code segments that render the magnifying glass (as circle or path), this is essentially a copy of Mike Bostock's Fisheye Distortion example.

The motivation for this was largely aesthetical but also a bit functional. When using the Fisheye as an aid to viewing large datasets, I often find myself experimenting with the degree and radius of the distortion. In such cases, I find it helpful to see the exact reach of the distortion and then decide the best configuration for a particular dataset.

@patcon
patcon / .block
Created May 29, 2025 03:58 — forked from micahstubbs/.block
Simplified Globe
license: mit
border: none
height: 660
license: CC0-1.0