Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format code with prettier #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,82 +1,103 @@
# JUEThacks 2020(virtual)
Welcome to JUEThacks!

![welcome](https://media.giphy.com/media/QaAhHcpPEPK5ZWntSg/giphy.gif)
Welcome to JUEThacks!

![welcome](https://media.giphy.com/media/QaAhHcpPEPK5ZWntSg/giphy.gif)

## Rules

Kindly go through the [Rules](rules.md) of the Hackathon beforehand.

## Submissions

All the Project Submissions have to done by making a Pull request first and then creating a issue in this repository. The guidelines to followed for the same have been mentioned below:
1. The **Team Leader** has to fork this repository in his/her profile and then create a new folder named **YOUR-TEAMNAME** inside **SUBMISSION** folder.
2. The **Team Leader** will have to *push* all the files related to the project including presentation in the forked respository in his/her profile and then create a pull request. If you're new to using git and github visit [this](https://medium.com/@camelcaseguy/git-github-for-babies-by-shubhendra-7232c0486b99)

1. The **Team Leader** has to fork this repository in his/her profile and then create a new folder named **YOUR-TEAMNAME** inside **SUBMISSION** folder.
2. The **Team Leader** will have to _push_ all the files related to the project including presentation in the forked respository in his/her profile and then create a pull request. If you're new to using git and github visit [this](https://medium.com/@camelcaseguy/git-github-for-babies-by-shubhendra-7232c0486b99)
3. The **Team Leader** has to open up an Issue for project submission using his/her GitHub Account [here](https://github.com/MozPhoenixClubJUET/JUETHacks2020/issues/new)
4. The **Issue Template** should be strictly followed. A submission not following the same would be termed as an INVALID SUBMISSION.
5. Add appropriate **labels** according to your **Project Field & Track**. Two Label have to applied on each individual submission.
6. Only a **single issue** has to be made for each individual project, Multiple submissions will be termed as INVALID SUBMISSION.

## Labels

One has to mark appropriate label in order to a submission valid for the Hackathon. Each submissions should have at least 2 labels according to the Project Field & Track.

## Project Field:

Choose from

#### `AR/VR`

#### `Blockchain`

#### `Open Innovation`

#### `COVID`

## Project Track:

All the various tracks are listed below, please choose one accordingly.

### `AR/VR Track 1`

> **Immersive Tech for Good - Easing Disabilities**
> Virtual and Augmented Reality have proven to be a great technology to empower or transform the lives of people with disabilities, be it motor-skills recovery for people who have had a stroke or physical trauma, showing someone in a wheelchair what it is like to go skydiving, or generally making it easier to live with a disability. Pick ANY disability, and use the power of Virtual /Augmented Reality to make a difference in the lives of the affected people.
Interesting Case Studies:
> Interesting Case Studies:
>
> - [Link 1](https://www.abilitynet.org.uk/news-blogs/8-ways-virtual-reality-could-transform-lives-disabled-people)
> - [Link 2](https://www.thegenius.ca/augmented-virtual-reality-benefit-disabled-people/)
> - [Link 3](https://arpost.co/2018/02/21/augmented-reality-changed-life-disabled/)

> **Note:** You can use any Open Source Platforms to build the prototypes:
>
> 1. AFrame
> 2. React 360
> 3. ARKit
> 4. ARCore

### `AR/VR Track 2`

> **Interfaces of Tomorrow**
> I​n the future, personal computing has finally broken into the three dimensional world, and the one device you carry with you, is no longer an object with a screen like your mobile phone, but rather merges seamlessly into your three dimensional reality. What are these interfaces of tomorrow going to look like, doing day-to-day tasks like we do on our phones today? How do you shop online? How do you make a payment? How do you remotely communicate with someone?
Pick any ONE interesting interpretation of what is currently a common task on your phone, imagine the future, and build it for tomorrow.
> Pick any ONE interesting interpretation of what is currently a common task on your phone, imagine the future, and build it for tomorrow.

> **Note:** You can use any Open Source Platforms to build the prototypes:
>
> 1. AFrame
> 2. React 360
> 3. ARKit
> 4. ARCore

### `Blockchain Track 1`

> What are the possible use cases of blockchain with trade and finance that have not been explored or aren’t popular yet?

### `Blockchain Track 2`

> Blockchain industry is yet to be utilised at the max and we see new use-cases emerging daily. How according to you can tokenisation improve traditional way of doing business?

### `Blockchain Track 3`

> Have you tried addressing any common PROBLEM using BLOCKCHAIN before? If YES, elaborate about the PROBLEM and the SOLUTION for the same.

### `Open Innovation Track 1`

> How do we best evaluate Front office agent performance during an inbound customer call using NLP and how do we capture sentiment of the call?

### `Open Innovation No Track Followed`

> **Have you addressed any day to day life problem for the common man and tried figuring out a solution for that?**
> It could be an app or a device or a simple process which could help a huge mass together.
> **Note:** You can use any Open Source Tech Stack to build solutions for the same.

### `COVID software track`

> **Figure out a problem that you can solve by building a software for current covid situation**

### `COVID hardware track`
> **Figure out a problem that you can solve by building a hardware/IOT device for current covid situation**

> **Figure out a problem that you can solve by building a hardware/IOT device for current covid situation**

#### Ask us if you've any questions. Drop your questions [here](https://t.me/joinchat/FN8dIBkSGlglXTSv0joR0g)

Expand Down
81 changes: 42 additions & 39 deletions SUBMISSION/BugBusters/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# COVID-19 Predictor

A simple web application that predicts the chances for a person's being infected by COVID-19 based on symptoms.
[Preview on Heroku](http://covid-predict-app.herokuapp.com)
## Technologies used
- HTML, CSS, and JavaScript for the public webpages.
- Bootstrap and jQuery for enhancing the front-end.
- Flask for the back-end server and machine learning model handling in Python.
- SQL for storing the logs in an SQLite3 database.
- NewsAPI (http://newsapi.org) for fetching relevant news.
A simple web application that predicts the chances for a person's being infected by COVID-19 based on symptoms.

[Preview on Heroku](http://covid-predict-app.herokuapp.com)

## Technologies used

- HTML, CSS, and JavaScript for the public webpages.
- Bootstrap and jQuery for enhancing the front-end.
- Flask for the back-end server and machine learning model handling in Python.
- SQL for storing the logs in an SQLite3 database.
- NewsAPI (http://newsapi.org) for fetching relevant news.

# Setting Up the Application Server

Expand All @@ -37,51 +37,54 @@
- Add the NewsAPI API Key to _apikey.py_. You can obtain one from http://newsapi.org.

_apikey.py_:

```
apikey = 'YOUR_API_KEY_HERE'
```

This isn't a requirement unless you wish to display recent news.

- Acquire the data in the form of a CSV file named _Data.csv_. Else, execute _dummydata.py_ to generate dummy data.
```python dummydata.py```

`python dummydata.py`

_Data.csv_:
```
fever,BodyPain,age,RunnyNose,diffBreath,infectionProb
99.6,0,95,0,1,0
102.1,0,3,1,1,0

```
fever,BodyPain,age,RunnyNose,diffBreath,infectionProb
99.6,0,95,0,1,0
102.1,0,3,1,1,0
...
```
| Parameter | Value |
|:------------------:|:---------:|
| fever | Body temperature in °F |
| BodyPain | Body pain: 0 for none, 1 for severe |
| age | The person's age |
| RunnyNose | Whether or not the person has a runny nose: 0 for no, 1 for yes |
| diffBreath | Whether or not the person faces difficulty in breathing: 0 for none, 1 for little, 2 for severe |
| infectionProb | Whether or not the person is infected: 0 for not infected, 1 for infected |

| Parameter | Value |
| :-----------: | :---------------------------------------------------------------------------------------------: |
| fever | Body temperature in °F |
| BodyPain | Body pain: 0 for none, 1 for severe |
| age | The person's age |
| RunnyNose | Whether or not the person has a runny nose: 0 for no, 1 for yes |
| diffBreath | Whether or not the person faces difficulty in breathing: 0 for none, 1 for little, 2 for severe |
| infectionProb | Whether or not the person is infected: 0 for not infected, 1 for infected |

- Get the model trained by executing _training.py_.

```python training.py```

- Host the Flask server by executing ```flask run```.
`python training.py`

- Host the Flask server by executing `flask run`.

`flask run`

```flask run```

By default, the server will be live at http://localhost:5000/ in debug mode. Other settings can be modified as per requirement.

# Credits

Authors (BugBusters):
- [Param Siddharth](https://www.paramsid.com/)
- [Ritesh Yadav](https://github.com/DARK-art108)
- [Harsh Marolia](https://github.com/HarshMarolia)
- Sushant Sharma
- [Paridhi Malav](https://github.com/paridhi1314)

- [Param Siddharth](https://www.paramsid.com/)
- [Ritesh Yadav](https://github.com/DARK-art108)
- [Harsh Marolia](https://github.com/HarshMarolia)
- Sushant Sharma
- [Paridhi Malav](https://github.com/paridhi1314)

Favicon obtained from https://findicons.com.
News API from http://newsapi.org.
Expand Down
4 changes: 2 additions & 2 deletions SUBMISSION/BugBusters/static/style/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nav {
background: #b33;
}
background: #b33;
}
24 changes: 13 additions & 11 deletions SUBMISSION/BugBusters/templates/about.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{% extends 'layout.html' %}
{% block title %}About{% endblock %}
{% block main %}
{% extends 'layout.html' %} {% block title %}About{% endblock %} {% block main
%}
<h2 class="mt-3">Coronavirus Predictor (Neerog Jeevan)</h2>
<p>A simple web application that predicts
the chances for a person's being infected by COVID-19
based on symptoms.</p>
<p>A dummy dataset and machine learning model are being used
for the prediction. This application has been built in HTML, CSS,
JavaScript and Python (Flask, NumPy, Pickle, Scikit-Learn).</p>
<p>Made with ❤️ by <a href="/team">BugBusters</a>.</p>
{% endblock %}
<p>
A simple web application that predicts the chances for a person's being
infected by COVID-19 based on symptoms.
</p>
<p>
A dummy dataset and machine learning model are being used for the prediction.
This application has been built in HTML, CSS, JavaScript and Python (Flask,
NumPy, Pickle, Scikit-Learn).
</p>
<p>Made with ❤️ by <a href="/team">BugBusters</a>.</p>
{% endblock %}
54 changes: 20 additions & 34 deletions SUBMISSION/BugBusters/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
{% extends 'layout.html' %}
{% block title %}Home{% endblock %}
{% block main %}
{% extends 'layout.html' %} {% block title %}Home{% endblock %} {% block main %}
<h2 class="mt-3">Coronavirus Predictor</h2>
<h3>Welcome to Neerog Jeevan!</h3>
<p>COVID-19 has turned the world upside down in 2020.
To stay safe and healthy is a major concern.</p>
<p>
COVID-19 has turned the world upside down in 2020. To stay safe and healthy is
a major concern.
</p>
<p>How safe are you?</p>
<p><a href='/predict' class='btn btn-success'>Proceed to the Predictor</a></p>
<p><a href="/predict" class="btn btn-success">Proceed to the Predictor</a></p>
<h3>Headlines</h3>
<p id='headlines'></p>
{% endblock %}
{% block scripting %}
$(function() {
let news = $('#headlines');
news.text('Fetching news...');
$.getJSON('/news.json', {key: {{ keyval }}}, function(data) {
// news.text(JSON.stringify(data));
news.text('Latest COVID-19 news:');
if (data.status === 'ok') {
let articles = data.articles;
let listOfArticles = $('<ul></ul>');
news.append(listOfArticles);
if (articles.length > 5)
articles = articles.slice(0, 5);
for (let article of articles) {
let articleElem = $('<a></a>'), listItem = $('<li></li>');
articleElem.attr({ href: article.url });
articleElem.text(article.title);
listItem.append(articleElem);
listOfArticles.append(listItem);
}
} else {
news.text('Error in getting headlines.');
}
})
});
{% endblock %}
<p id="headlines"></p>
{% endblock %} {% block scripting %} $(function() { let news = $('#headlines');
news.text('Fetching news...'); $.getJSON('/news.json', {key: {{ keyval }}},
function(data) { // news.text(JSON.stringify(data)); news.text('Latest COVID-19
news:'); if (data.status === 'ok') { let articles = data.articles; let
listOfArticles = $('
<ul></ul>
'); news.append(listOfArticles); if (articles.length > 5) articles =
articles.slice(0, 5); for (let article of articles) { let articleElem = $('<a
></a>'), listItem = $('
<li></li>
'); articleElem.attr({ href: article.url }); articleElem.text(article.title);
listItem.append(articleElem); listOfArticles.append(listItem); } } else {
news.text('Error in getting headlines.'); } }) }); {% endblock %}
Loading