Skip to content

Commit

Permalink
Have moved some code over from existing repos into here to make this …
Browse files Browse the repository at this point in the history
…a standalone project and added the 'network_chart.js' as well
  • Loading branch information
sdl60660 committed Sep 24, 2020
0 parents commit fc9f6a1
Show file tree
Hide file tree
Showing 1,167 changed files with 168,596 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .idea/donor_overlap_standalone.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/libraries/R_User_Library.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

393 changes: 393 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn app:app --log-file=-
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# candidate_fundraising

Visualization project based on FEC records with a particular focus on candidate donor overlap and mapping donors to zipcode demographics.

Work in progress: http://donors-2020.herokuapp.com/
15 changes: 15 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from flask import Flask, render_template, request, jsonify
import json
import os

SECRET_KEY = os.getenv('SECRET_KEY', '2345')

app = Flask(__name__)
app.secret_key = SECRET_KEY

@app.route('/')
def homepage():
return render_template('index.html')

if __name__ == "__main__":
app.run(port=5453, debug=True)
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Flask
gunicorn
pandas
numpy
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.6.12
23 changes: 23 additions & 0 deletions static/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "philly_policing",
"homepage": "https://github.com/sdl60660/philly_policy_complaints",
"authors": [
"sdl60660 <[email protected]>"
],
"description": "",
"main": "",
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"chosen": "^1.8.7",
"jquery": "^3.5.1",
"jquery-ui": "^1.12.1"
}
}
53 changes: 53 additions & 0 deletions static/bower_components/chosen/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "chosen",
"description": "Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.",
"keywords": [
"select",
"multiselect",
"dropdown",
"form",
"input",
"ui"
],
"homepage": "https://harvesthq.github.io/chosen/",
"license": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md",
"authors": [
{
"name": "Patrick Filler",
"url": "https://github.com/pfiller"
},
{
"name": "Christophe Coevoet",
"url": "https://github.com/stof"
},
{
"name": "Ken Earley",
"url": "https://github.com/kenearley"
},
{
"name": "Koen Punt",
"url": "https://github.com/koenpunt"
}
],
"dependencies": {},
"main": [
"chosen.jquery.js",
"chosen.css"
],
"ignore": [],
"repository": {
"type": "git",
"url": "https://github.com/harvesthq/chosen.git"
},
"version": "1.8.7",
"_release": "1.8.7",
"_resolution": {
"type": "version",
"tag": "v1.8.7",
"commit": "e478a63a8ecb3d5014f36b644d31ad247aef2f8b"
},
"_source": "https://github.com/harvesthq/bower-chosen.git",
"_target": "^1.8.7",
"_originalSource": "chosen",
"_direct": true
}
19 changes: 19 additions & 0 deletions static/bower_components/chosen/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
sudo: false

language: node_js

node_js:
- "node"

deploy:
provider: npm
email: [email protected]
api_key:
# This key is for automatically publishing releases to NPM,
# but it is encrypted for publishing publicly like this using Travis.
# More information about how this token is generated and encrypted here:
# https://docs.travis-ci.com/user/deployment/npm#NPM-auth-token
secure: "WXJUezbSyFX2bDLmBpO2mLSTxVzn7FH1ll6hzGPD4PUrDCRgBW7RyXX3UnIwSknIOQ/pqDq9zRPCSxHgyWNW3dX84n4P7+5C2dlxagtsBKc/ovwGqHFOrb/U+yWgrBimXvpDQeaBveZJXPhN46YYkb4NNWlP3d6bYaXqR5qtURM="
on:
tags: true
repo: harvesthq/chosen-package
23 changes: 23 additions & 0 deletions static/bower_components/chosen/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#### Chosen
- by Patrick Filler for [Harvest](http://getharvest.com)
- Copyright (c) 2011-2016 by Harvest

Available for use under the [MIT License](http://en.wikipedia.org/wiki/MIT_License)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
52 changes: 52 additions & 0 deletions static/bower_components/chosen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Chosen

Chosen is a library for making long, unwieldy select boxes more user friendly.

- jQuery support: 1.7+
- Prototype support: 1.7+

For **documentation**, usage, and examples, see:
http://harvesthq.github.io/chosen/

For **downloads**, see:
https://github.com/harvesthq/chosen/releases/

### Package managers

Chosen is available through [Bower](https://bower.io/), [npm](https://www.npmjs.com), and [Composer](https://getcomposer.org/), _however, the package names are not the same_.

To install with Bower:

```
bower install chosen
```

To install with npm:

```
npm install chosen-js
```

To install with Composer:

```
composer require harvesthq/chosen
```

The compiled files for these packages are automatically generated and stored in a [2nd Chosen repository](https://github.com/harvesthq/chosen-package). No pull requests will be accepted to that repository.

### Contributing to this project

We welcome all to participate in making Chosen the best software it can be. The repository is maintained by only a few people, but has accepted contributions from over 50 authors after reviewing hundreds of pull requests related to thousands of issues. You can help reduce the maintainers' workload (and increase your chance of having an accepted contribution to Chosen) by following the
[guidelines for contributing](contributing.md).

* [Bug reports](contributing.md#bugs)
* [Feature requests](contributing.md#features)
* [Pull requests](contributing.md#pull-requests)

### Chosen Credits

- Concept and development by [Patrick Filler](http://patrickfiller.com) for [Harvest](http://getharvest.com/).
- Design and CSS by [Matthew Lettini](http://matthewlettini.com/)
- Repository maintained by [@pfiller](http://github.com/pfiller), [@kenearley](http://github.com/kenearley), [@stof](http://github.com/stof), [@koenpunt](http://github.com/koenpunt), and [@tjschuck](http://github.com/tjschuck).
- Chosen includes [contributions by many fine folks](https://github.com/harvesthq/chosen/contributors).
42 changes: 42 additions & 0 deletions static/bower_components/chosen/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "chosen",
"description": "Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.",
"keywords": [
"select",
"multiselect",
"dropdown",
"form",
"input",
"ui"
],
"homepage": "https://harvesthq.github.io/chosen/",
"license": "https://github.com/harvesthq/chosen/blob/master/LICENSE.md",
"authors": [
{
"name": "Patrick Filler",
"url": "https://github.com/pfiller"
},
{
"name": "Christophe Coevoet",
"url": "https://github.com/stof"
},
{
"name": "Ken Earley",
"url": "https://github.com/kenearley"
},
{
"name": "Koen Punt",
"url": "https://github.com/koenpunt"
}
],
"dependencies": {},
"main": [
"chosen.jquery.js",
"chosen.css"
],
"ignore": [],
"repository": {
"type": "git",
"url": "https://github.com/harvesthq/chosen.git"
}
}
Binary file added static/bower_components/chosen/chosen-sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/bower_components/chosen/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fc9f6a1

Please sign in to comment.