Skip to content

Instantly share code, notes, and snippets.

View patcon's full-sized avatar

Patrick Connolly patcon

View GitHub Profile
@patcon
patcon / reddwarf-test-algorithms.ipynb
Last active June 20, 2025 07:05
reddwarf-test-algorithms.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@patcon
patcon / 0000-README.md
Last active June 3, 2025 04:03
Patch for compdemocracy/polis

Context: polis-community/red-dwarf#55

Apply with

curl https://gist.githubusercontent.com/patcon/d8b850c5e8c5bed0021b748cf224a051/raw/0001-Add-is-meta-back-into-comments.csv-export.patch
git apply 0001-Add-is-meta-back-into-comments.csv-export.patch

or

@patcon
patcon / polis-data-difference-between-csv-and-api.ipynb
Last active June 3, 2025 21:52
polis-data-difference-between-csv-and-api.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
border: none
height: 660
license: CC0-1.0
@patcon
patcon / .block
Created May 29, 2025 03:58 — forked from micahstubbs/.block
Simplified Globe
license: mit

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 / 2025-05-02-jean-lou-alt-algorithm-comparison.ipynb
Last active May 2, 2025 09:13
2025-05-02-jean-lou-alt-algorithm-comparison.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<style>
#plot-wrapper {
display: flex;
width: 100%;
gap: 20px;
}
svg {
@patcon
patcon / 2025-04-30-bowling-green-alt-algorithm-comparison.ipynb
Last active May 1, 2025 23:27
2025-04-30-bowling-green-alt-algorithm-comparison.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@patcon
patcon / 2025-05-01-bowling-green-algo-compare.ipynb
Last active May 1, 2025 15:58
Alternative analysis of What Could Be Bowling Green consultation https://report.whatcouldbgbe.com/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.