Skip to content

Instantly share code, notes, and snippets.

View mapmeld's full-sized avatar

Nick Doiron mapmeld

  • Chicago, IL
View GitHub Profile
@mapmeld
mapmeld / MediaPolicy.md
Last active October 13, 2015 22:38 — forked from anonymous/MediaPolicy.txt
Media Policy

Thank you for contacting me!

  1. If your work is a sponsored article or ad, please tell me in advance.

  2. I like Twitter. I appreciate a heads-up so that I don't get undue credit ("Linux programmer @mapmeld") or misdirected ("@mapmeld: content no one else sees because this began with @mapmeld").

  3. I am OK with either "Nick" or "Nicholas". I usually go by "Nick" while I am in the United States and Asia.

  4. If I mention a colleague, funder, or other ally on the project, please keep their name in the final, edited report!

@mapmeld
mapmeld / fix-new-muni-metro.md
Created May 25, 2016 09:37 — forked from anonymous/fix-new-muni-metro.md
Fix NewMuniMetro.com

Hey fellow transit hackers,

I'm Nick Doiron (@mapmeld), a 2012 Code for America fellow and one of the devs behind Chicago's transit future map at http://vision.transitfuture.org/

Like you, we had a lot of cool visualization stuff which didn't work on mobile. There are also a few places on your site where the text is wider than the viewport, or scrolling laterally jumbles things up. Fortunately, it looks like there are a few lines of HTML and CSS which will get this thing fixed. If only designing transit networks were so easy!

HTML: replace your current viewport tag. Make this thing a fixed-width single column site.

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
@mapmeld
mapmeld / bulk-neo4j-import-homebrew.sh
Last active May 26, 2016 08:01 — forked from jexp/bulk-neo4j-import-original.sh
Panama Papers Import Scripts for Neo4j and Docker
export NEO4J_HOME="/usr/local"
if [ ! -f data-csv.zip ]; then
curl -OL https://cloudfront-files-1.publicintegrity.org/offshoreleaks/data-csv.zip
fi
export DATA=${PWD}/import
rm -rf $DATA
@mapmeld
mapmeld / download_glue_data.py
Last active March 25, 2020 01:59 — forked from W4ngatang/download_glue_data.py
Script for downloading data of the GLUE benchmark (gluebenchmark.com)
''' Script for downloading all GLUE data.
Note: for legal reasons, we are unable to host MRPC.
You can either use the version hosted by the SentEval team, which is already tokenized,
or you can download the original data from (https://download.microsoft.com/download/D/4/6/D46FF87A-F6B9-4252-AA8B-3604ED519838/MSRParaphraseCorpus.msi) and extract the data from it manually.
For Windows users, you can run the .msi file. For Mac and Linux users, consider an external library such as 'cabextract' (see below for an example).
You should then rename and place specific files in a folder (see below for an example).
mkdir MRPC
cabextract MSRParaphraseCorpus.msi -d MRPC