Giter VIP home page Giter VIP logo

walkblacksburg-scripts's Introduction

OLD CodeforNRV.org

This was the old website for the Code for New River Valley Brigade. Our current website runs on Wordpress.

Goals

  1. Explain what Code for NRV is and the type of work we do.
  2. To celebrate our events, projects, and discussions!
  3. Encourage current and new members to participate with clear ways to get involved.
  4. To have this site be easily reused by other Brigades just starting out.

Tech

Built using Jekyll, Bootstrap, and the CfAPI.

Contributing

Submitting an Issue

We use GitHub Issues to track bugs and features. We've included several of our open GitHub Issues right on our homepage using the Civic Tech Issue Finder.

Running the Site Locally on Your Computer

To run the site locally on your own computer (most helpful for previewing your own changes), you will need Jekyll installed (click here for Jekyll installation instructions.)

Fork and clone the repository, then run the following command in the root directory of the repo:

jekyll serve

or

jekyll serve --watch which will watch for changes to files.

Your computer should now be serving your local copy of the site at:

http://0.0.0.0:4000.

Sharing Your Changes Using Jekit

You can use the nifty Jekit app to preview changes you make to this site.

To do this, fork this repo, and commit your changes on a branch to your fork. You can then preview what your changes look like by navigating to:

https://jekit.codeforamerica.org/USERNAME/sfbrigade.github.io/BRANCHNAME/

For a basic example of its usage, if GitHub user @lolname has made changes to the projects page on their fork (on the master branch), they can preview their changes using Jekit by going to:

https://jekit.codeforamerica.org/lolname/sfbrigade.github.io/master/projects

Submitting a Pull Request

  1. Fork the project.
  2. Create a topic branch.
  3. Implement your feature or bug fix.
  4. Commit and push your changes.
  5. Submit a pull request.

walkblacksburg-scripts's People

Contributors

bschoenfeld avatar ghthor avatar nealf avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

walkblacksburg-scripts's Issues

Data format

Here's what I'm proposing for our crime data format:
{
“_id”: String (autogenerated),
“AgencyID”: String,
“AgencyName”: String,
“CaseNumber”: String,
“CriminalOffense”: String,
“DateReported”: DateTime (YYYY-MM-DDTHH:MM:SS),
“Description”: String,
“Location”: String,
“OccurenceDate”: DateTime (YYYY-MM-DDTHH:MM:SS),
“Disposition”: String,
“Lat”: float,
“Lng”: float
}

  • _id is autogenerated by CouchDB if you need, or could use a unique id like CrimeCodeID
  • Coordinates will need to be converted or geocoded to lat/lng
  • Location should have the city/state added to the street address
  • CriminalOffense (CrimeCode) should probably be standardized to some extent

Does anybody have any thoughts on whether we should essentially keep all of the original data we scrape and then add the standardized fields separately?

A Simpler Idea - Is My Walk Safe?

It seems that we've taken on the challenge of finding the safest path, which is a pretty difficult problem. As an alternative, we could get the path from Google and just give it a safety score. Here's a demo where a marker is animated through a path. We could take a number of positions along the route, like that demo seems to do, and score them each. Then we could aggregate the scores and present a final score. We could then set thresholds and make recommendations (it's ok to walk, you should probably get a ride, etc).

If we do this, we just need to make a number of APIs that take a point and return a yes / no answer e.g. was there a recent crime here, is there a sidewalk here, etc.

Future iterations could show the dangerous portions of the walk on a map and allow the user to manually change the route and re-score.

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.