Skip to content

jeffkaufman/trycontra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TryContra

This is the source code and database backing https://trycontra.com

Submitting Changes

Either send an email to Jeff (jeff@jefftk.com) or send a Pull Request.

If you're making a pull request, the process is:

  1. Update dances.json with your change. The structure of each record is: [url, city, weekdays, annual frequency, gender free?, active?],

    For example: ["http://www.bidadance.org/", "Cambridge MA", "Sundays", 21, "GF", true],

    Note that annual frequencies are just guesses, and currently many of them are too high because of dances resuming with fewer annual events than before the pandemic.

  2. Run ./lookup_locs.py to update dances_locs.json with your changes and pull in latitude and longitude.

  3. Commit your changes and make a PR.

Structure

  • index.html: main page, containing both the display and the scripts.
  • dances.json: dance database.
  • dances_locs.json: dance database with locations automatically added.
  • zipcode.json: giant map from zipcode to lat/lng.

Updating zipcode.json

You can get the initial CSV from anywhere, but I found this one easy: http://www.unitedstateszipcodes.org/zip-code-database/

Once you have the .csv you can run:

python build_zipcode_json.py <csv-file>

About

source for trycontra.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published