-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ffd661
commit 618192c
Showing
7 changed files
with
96 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from os import system | ||
|
||
files = ["app.py", "keep_alive.py"] | ||
|
||
|
||
def check_format(): | ||
for i in files: | ||
system(f"pycodestyle --show-source --show-pep8 --format=default {i}") | ||
|
||
|
||
if __name__ == "__main__": | ||
check_format() | ||
print("All done!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from os import system | ||
|
||
files = ["app.py", "keep_alive.py"] | ||
|
||
|
||
def format(): | ||
for i in files: | ||
system(f"autopep8 --in-place --aggressive {i}") | ||
|
||
|
||
if __name__ == "__main__": | ||
format() | ||
print("All done!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700,900'); | ||
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700,900"); | ||
body { | ||
width : 100%; | ||
height : 750px; | ||
width: 100%; | ||
height: 750px; | ||
display: flex; | ||
flex-direction : column; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
font-family: 'Montserrat', sans-serif; | ||
font-family: "Montserrat", sans-serif; | ||
background-color: #ebedef; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Flask Calculator</title> | ||
<link rel="stylesheet" href={{url_for('static',filename='main.css')}}> | ||
</head> | ||
|
||
<body> | ||
<section class="calculator"> | ||
<head> | ||
<title>Flask Calculator</title> | ||
<link rel="stylesheet" href={{url_for('static',filename='main.css') | ||
}}> | ||
</head> | ||
|
||
<body> | ||
<section class="calculator"> | ||
<h1>Flask Calculator App</h1> | ||
|
||
<form action="/calculate" method="POST"> | ||
|
||
<label for="Number One">First Number</label> | ||
<input type="number" placeholder="First Number" name="number_one"/> | ||
|
||
<label for="Number Two">Second Number</label> | ||
<input type="number" placeholder="Second Number" name="number_two"/> | ||
|
||
<label for="Operation">Operation</label> | ||
<select name="operation"> | ||
<option value="add">Add</option> | ||
<option value="subtract">Subtract</option> | ||
<option value="multiply">Multiply</option> | ||
<option value="divide">Divide</option> | ||
</select> | ||
|
||
|
||
<input type="submit" value="Calculate" id="calc_btn" class="btn" /> | ||
<form action="/calculate" method="POST"> | ||
<label for="Number One">First Number</label> | ||
<input type="number" placeholder="First Number" name="number_one" /> | ||
|
||
<h3>The result is: {{ result }}</h3> | ||
<label for="Number Two">Second Number</label> | ||
<input type="number" placeholder="Second Number" name="number_two" /> | ||
|
||
</form> | ||
</section> | ||
<label for="Operation">Operation</label> | ||
<select name="operation"> | ||
<option value="add">Add</option> | ||
<option value="subtract">Subtract</option> | ||
<option value="multiply">Multiply</option> | ||
<option value="divide">Divide</option> | ||
</select> | ||
|
||
<footer> | ||
© 2021 <a href="https://github.com/UltiRequiem">Eliaz Bobadilla</a> | ||
</footer> | ||
<input type="submit" value="Calculate" id="calc_btn" class="btn" /> | ||
|
||
</body> | ||
<h3>The result is: {{ result }}</h3> | ||
</form> | ||
</section> | ||
|
||
<footer> | ||
© 2021 <a href="https://github.com/UltiRequiem">Eliaz Bobadilla</a> | ||
</footer> | ||
</body> | ||
</html> |