Giter VIP home page Giter VIP logo

dontsplittheremainvote's Introduction

dontsplittheremainvote.com

The aims are to identify areas where:

  • remain parties working together could affect the result; and
  • there is only one remain party which could win (under a variety of assumptions)

And in those areas, advise that a coalition would be helpful.

Design choices

It's a static html website, which means it looks bad. On the plus side, it's difficult to make it fall over.

The only dynamic bit is postcodes.php, which uses a sqlite database file full of postcodes.

Building it

Run:

python3 -m dontsplithteremainvote

and it will read a bunch of CSV spreadsheets and generate some html files from jinja2 templates.

You'll probably want to comment out make_sqlite() in dontsplittheremainvote/generate_pages.py.

Or: wget 'https://dontsplittheremainvote.com/postcodes.sqlite3' -O generated/ to download the 130MB postcode database.

Updating external sources

Run this to update the files in data/.

./update_extenral.sh

It does nothing if you updates less than 2 hours ago, which lets you ./update_extenral.sh && python3 -m dontsplithteremainvote every time

Deployment

Make config.sh containing RSYNC_LOCATION="XXXX@XXXX:dontsplittheremainvote.com/"

And run ./do_rsync.sh

dontsplittheremainvote's People

Contributors

h2g2bob avatar coliff avatar

Stargazers

Lorraine David avatar Bob Whitelock avatar  avatar James Taylor avatar

Watchers

James Cloos avatar  avatar

Forkers

generalelection

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.