Skip to content

Instantly share code, notes, and snippets.

View tdooner's full-sized avatar

Tom Dooner tdooner

View GitHub Profile
tom@si ~/brigade (master %) » ls app/views/**/*.html.haml | grep -v admin | grep -v style_guide | grep -v api/docs | grep -v emails | xargs wc -l
5 app/views/activity_map/index.html.haml
4 app/views/application/show.html.haml
5 app/views/elections/show.html.haml
3 app/views/errors/not_found.html.haml
4 app/views/facebook_shares/complete.html.haml
5 app/views/get_verified/show.html.haml
3 app/views/home/logged_out_home.html.haml
9 app/views/ios_app_cookies/show.html.haml
153 app/views/layouts/application.html.haml
#!/bin/bash
before=$1
after=$2
shopt -s globstar # let ** glob work
if [ ! -d app/assets/components/$before ]; then
echo "could not find component directory"
exit 1
fi

Repro details

» node --version
v5.0.0

» $(npm bin)/mapshaper --version
0.3.32

» $(npm bin)/mapshaper -i input_georgia_house_district_3.json -simplify visvalingam 10% -o output.json force precision=0.005
Wrote output.json
@tdooner
tdooner / POLICY.md
Created September 9, 2017 05:44
Irma Response Privacy Policy

The Irma Response chat application takes your privacy seriously.

Data you provide into the chat will be shared with trusted third parties only to the extent that we believe is necessary to get you the help you need.

We will not sell your information.

@tdooner
tdooner / Code.gs
Created September 6, 2018 16:22
Brigade Onboarding Form v1.0
/*
* To set up this onboarding flow for your Brigade, first create a Google Form for
* the onboarding survey you'll use during meetings.
*
* This form must have a field called "Email Address".
* Configure the form to dump its results into a Google Spreadsheet.
*/
/*
* 1. Customize these variables!