Skip to content

Instantly share code, notes, and snippets.

@tewson
tewson / environment.yml
Last active February 26, 2020 01:16
Rank TDs by number of votes participated in 2019 Using the Houses of the Oireachtas Open Data APIs
name: rank-td-by-dail-votes-2019
channels:
- conda-forge
dependencies:
- python
- pip
- pip:
- pandas
- matplotlib
@tewson
tewson / svg-download.html
Created February 24, 2017 12:53
A simple script demonstrating how to generate an SVG file from the DOM.
<body>
<div id="chart">
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="1" fill="white" />
</svg>
</div>
<button id="download">Download</button>
<script>
document.getElementById('download').onclick = function () {
var chartElement = document.querySelector('#chart > svg');

Keybase proof

I hereby claim:

  • I am tewson on github.
  • I am tewson (https://keybase.io/tewson) on keybase.
  • I have a public key whose fingerprint is CCA4 EE4F D0E0 E2C2 CFC8 8E1B AC6D 9CD0 6091 979E

To claim this, I am signing this object: