Skip to content

Instantly share code, notes, and snippets.

View gfairchild's full-sized avatar

Geoffrey Fairchild gfairchild

View GitHub Profile
"""
This code pulls data from the WHO's influenza surveillance database:
https://apps.who.int/flumart/Default?ReportNo=12
This website is pretty tricky to parse; you must pass realistic headers to the POST requests, and you must also
issue 3 total requests: 1) a GET request, 2) a POST request, and 3) another POST request. All 3 of these requests,
in order, are required to actually collect the underlying data that's displayed in the table. See `get_table_data`
for more documentation on this process.
@gfairchild
gfairchild / # graph-tool - 2017-02-22_12-24-05.txt
Created February 22, 2017 19:36
graph-tool (homebrew/science/graph-tool) on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/science/graph-tool on macOS 10.11.6
Build date: 2017-02-22 12:24:05
> brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:

Keybase proof

I hereby claim:

  • I am gfairchild on github.
  • I am gfairchild (https://keybase.io/gfairchild) on keybase.
  • I have a public key whose fingerprint is 59B5 DFDE 3209 B8DB FE8B D1D8 6EB6 360B 5428 D69F

To claim this, I am signing this object:

@gfairchild
gfairchild / tar xvf scip-3.2.0.tgz
Last active August 29, 2015 14:26
tar xvf scip-3.2.0.tgz
~/Desktop> tar --version
bsdtar 2.8.3 - libarchive 2.8.3
~/Desktop> tar xvzf scip-3.2.0.tgz
x scip-3.2.0/COPYING
x scip-3.2.0/INSTALL
x scip-3.2.0/CHANGELOG
x scip-3.2.0/Makefile
x scip-3.2.0/doc/scip.css
x scip-3.2.0/doc/scip.dxy
x scip-3.2.0/doc/scip.tag
@gfairchild
gfairchild / table.html
Created October 16, 2014 03:41
Pandoc missing columns
<table>
<caption>Ebola cases and deaths by country and by date – 1 August to most recent WHO update</caption>
<thead>
<tr class="header">
<th align="left"><p>rowspan=2 |Date</p></th>
<th align="left"><p>colspan=2 | Total</p></th>
<th align="left"><p>colspan=2 | Guinea</p></th>
<th align="left"><p>colspan=2 | Liberia</p></th>
<th align="left"><p>colspan=2 | Sierra Leone</p></th>
<th align="left"><p>colspan=2 | Nigeria</p></th>
@gfairchild
gfairchild / GeoDjango touches query
Created November 15, 2013 00:06
GeoDjango touches query
This file has been truncated, but you can view the full file.
SELECT "swap_location"."name" FROM "swap_location" WHERE ST_Touches("swap_location"."geometry", ST_GeomFromEWKB('\x0106000020e61000005a01000001030000000100000079000000b491789a687363c09445540e512334405577fc7cc37263c00cca88ba781f344077cacfe5047263c06cd6c402df20344063f8f1c5de7063c0a45e0d2a532034409c16bee9b66f63c0bc7e4916ef1c344049a8807e766d63c04cd46d65161734401ebb684ea26a63c01cb5bdeff50b34403e5ad525e26663c0b49b90e5c3f9334085db279b606563c06463b34463f23340685b1812b56363c064f28e3f90e53340749c51dcc96263c0042b51da41dc3340069662c8c36263c0acb318f82ed2334008e45a66d16263c064804defc5c433409629c45bbb6263c0148d217f37ba33400ea859fbd66163c0c4946bf880ba33401875bee9976063c0b47e4916efbe33401a5ecc73ad5f63c0eccddf7f09ba3340a08e14e5405f63c0fc723682acb43340aa86bf845c5f63c044a347afada933408ef5556bf15e63c07c4df167e1a23340a6982fa1655e63c0549d77b2879c33401c753eb3c95c63c014bcd2fa279133409ccfa389175b63c0d4374c0e818b3340378e9bf1685a63c08c29047209873340b71a09cf0c5a63c04414d82caf81334096cf6894265a63c0ac914a16cf7a3340501469948e5a63c08c59a06bc