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

Portfolio Git Pull #15

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e0005de
Update index.html
AsKsKenny Jan 21, 2021
9bda493
Update index.html
AsKsKenny Jan 21, 2021
45e6e44
Update index.html
AsKsKenny Jan 21, 2021
2aa2901
Update index.html
AsKsKenny Jan 21, 2021
5185c18
Update python_apps.html
AsKsKenny Jan 21, 2021
872c306
Add files via upload
AsKsKenny Jan 21, 2021
aefdd83
Update app.py
AsKsKenny Jan 21, 2021
dfbd523
Update password_generator.html
AsKsKenny Jan 21, 2021
8b861d4
Update app.py
AsKsKenny Jan 21, 2021
f78c314
Update python_apps.html
AsKsKenny Jan 21, 2021
7ff9af3
Update password_generator.html
AsKsKenny Jan 21, 2021
0a794f7
Update python_apps.html
AsKsKenny Jan 21, 2021
0901bda
Update password_generator.html
AsKsKenny Jan 21, 2021
775b4c4
Update password_generator.html
AsKsKenny Jan 21, 2021
0917696
Update app.py
AsKsKenny Jan 21, 2021
250b3a7
Update password_generator.html
AsKsKenny Jan 21, 2021
daf92dc
Update password_generator.html
AsKsKenny Jan 21, 2021
89db58b
Update index.html
AsKsKenny Jan 23, 2021
3e22ae8
Add files via upload
AsKsKenny Jan 23, 2021
5ae5c4f
Update password_generator.html
AsKsKenny Jan 23, 2021
e348ab7
Update password_generator.html
AsKsKenny Jan 23, 2021
ec2a4b2
Update password_generator.html
AsKsKenny Jan 23, 2021
ecff8e3
Update app.py
AsKsKenny Jan 23, 2021
cc327a2
Update app.py
AsKsKenny Jan 23, 2021
987a6f4
Update app.py
AsKsKenny Jan 23, 2021
09c9c7c
Update index.html
AsKsKenny Feb 23, 2021
d7db3b6
Update index.html
AsKsKenny Feb 23, 2021
306e4ce
Update app.py
AsKsKenny Feb 23, 2021
61b2ba8
Update app.py
AsKsKenny Feb 23, 2021
cbbb4b1
Update app.py
AsKsKenny Feb 23, 2021
34f9e5c
Update app.py
AsKsKenny Feb 23, 2021
ad3960c
Update app.py
AsKsKenny Feb 23, 2021
9994530
Update app.py
AsKsKenny Feb 23, 2021
a5a8db8
Update app.py
AsKsKenny Feb 23, 2021
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
15 changes: 14 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import pytz # timezone
import requests
import os
import secrets
import string



Expand All @@ -17,7 +19,6 @@ def home_page():
def profile(name):
return render_template('index.html', name=name)


@app.route('/add_numbers', methods=['GET','POST'])
def add_numbers_post():
# --> ['5', '6', '8']
Expand Down Expand Up @@ -89,6 +90,18 @@ def python_apps_page():
def contact():
return render_template('contact.html')

@app.route('/password_generator', methods=['GET','POST'])
def password_generate():
if request.method == 'GET':
return render_template('password_generator.html')
elif request.method == 'POST':
print(request.form['text'].split())

for item in request.form['text'].split():
chars = string.digits + string.ascii_letters + string.punctuation

return render_template('password_generator.html', result="\n".join(secrets.choice(chars) for _ in range (40)))

@app.route('/blog', methods=['GET'])
def blog_page():
return render_template('blog.html')
Expand Down
Binary file added static/img/generate_password.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 8 additions & 29 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<div class="container" id="maincontent" tabindex="-1">
<div class="row">
<div class="col-lg-12">
<img class="img-responsive" src="/static/img/learn_python.jpeg" alt="" width="304"height="236">
<img class="img-responsive" src="https://pbs.twimg.com/profile_images/1342851829911138304/B2lhrPdn_400x400.jpg" alt="" width="304"height="236">
<div class="intro-text">
<h1 class="name">Hey there {{name}}!</h1>
<hr class="star-light">
Expand All @@ -104,35 +104,14 @@ <h2>Portfolio</h2>
<hr class="star-primary">
</div>
</div>
<div class="row">
<div class="col-sm-4 portfolio-item">
<a href="https://www.chesstastic.com/" target="_blank" class="portfolio-link" data-toggle="modal">
<div class="caption">
<div class="caption-content">
<i class="fa fa-search-plus fa-3x"></i>
</div>
</div>
<img src="/static/img/portfolio/chesstastic.jpeg" target="_blank" class="img-responsive" alt="Chesstastic">
</a>
</div>
<div class="col-sm-4 portfolio-item">
<a href="https://www.cleverprogrammer.com/" target="_blank" class="portfolio-link" data-toggle="modal">
<div class="caption">
<div class="caption-content">
<i class="fa fa-search-plus fa-3x"></i>
</div>
</div>
<img src="/static/img/portfolio/cleverprogrammer.png" class="img-responsive" alt="Slice of cake">
</a>
</div>
<div class="col-sm-4 portfolio-item">
<a href="https://www.youtube.com/channel/UCqrILQNl5Ed9Dz6CGMyvMTQ" target="_blank" class="portfolio-link" data-toggle="modal">
<a href="/password_generator" target="_blank" class="portfolio-link" data-toggle="modal">
<div class="caption">
<div class="caption-content">
<i class="fa fa-search-plus fa-3x"></i>
</div>
</div>
<img src="/static/img/portfolio/youtubecp.png" class="img-responsive" alt="Circus tent">
<img src="/static/img/generate_password.JPG" class="img-responsive" alt="Circus tent">
</a>
</div>
</div>
Expand Down Expand Up @@ -170,8 +149,8 @@ <h2>About</h2>
<div class="row">
<div class="footer-col col-md-4">
<h3>Location</h3>
<p>Chicago Illinois,
<br>United States</p>
<p>Hamburg,
<br>Hamburg</p>
</div>
<div class="footer-col col-md-4">
<h3></h3>
Expand All @@ -181,13 +160,13 @@ <h3></h3>
<h3>Around the Web</h3>
<ul class="list-inline">
<li>
<a href="https://www.facebook.com/CleverProgrammerr/" target="_blank" class="btn-social btn-outline"><span class="sr-only">Facebook</span><i class="fa fa-fw fa-facebook"></i></a>
<a href="https://www.facebook.com/ken.czyz" target="_blank" class="btn-social btn-outline"><span class="sr-only">Facebook</span><i class="fa fa-fw fa-facebook"></i></a>
</li>
<li>
<a href="https://www.youtube.com/channel/UCqrILQNl5Ed9Dz6CGMyvMTQ" class="btn-social btn-outline" target="_blank"><span class="sr-only">YouTube</span><i class="fa fa-fw fa-youtube"></i></a>
<a href="https://www.youtube.com/channel/UCJrZihON-ovVsoIpNVG-7qw" class="btn-social btn-outline" target="_blank"><span class="sr-only">YouTube</span><i class="fa fa-fw fa-youtube"></i></a>
</li>
<li>
<a href="https://github.com/CleverProgrammer" class="btn-social btn-outline" target="_blank"><span class="sr-only">Linked In</span><i class="fa fa-fw fa-github"></i></a>
<a href="https://github.com/AsKsKenny" class="btn-social btn-outline" target="_blank"><span class="sr-only">Linked In</span><i class="fa fa-fw fa-github"></i></a>
</li>
</ul>
</div>
Expand Down
65 changes: 65 additions & 0 deletions templates/password_generator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{% extends "index.html" %}

{% block title %}password_generator{% endblock %}

{% block content %}

<div class="container" id="maincontent" tabindex="-1">
<div class="row">
<div class="col-lg-12">
<img class="img-responsive" src="/static/img/generate_password.JPG" alt="">
<div class="intro-text">
<h1 class="name"></h1>
<hr class="star-light">
<span class="skills">Generates a 256-bit password using python</span>
</div>
</div>
</div>
</div>
</header>


<!-- Contact Section -->
<section id="contact">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2>Generate Password</h2>
<hr class="star-primary">
</div>
</div>
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<!-- To configure the contact form email address, go to mail/contact_me.php and update the email address in the PHP file on line 19. -->
<!-- The form should work on most web servers, but if the form is not working you may need to configure your web server differently. -->
<form name="sentMessage" id="contactForm" action="/generate_password" method="POST">
<div class="row control-group">
<div class="form-group col-xs-12 floating-label-form-group controls">
<label for="name">Here you can generate a 256-Bit Password</label>
<!-- <input type="text" name="text" class="form-control" placeholder="Here you can generate a 256-Bit Password" name="my-form" id="name" required data-validation-required-message="Please enter your name."> -->
<p class="help-block text-danger"></p>
</div>
</div>
</div>
<br>
<div id="success"></div>
<div class="row">
<div class="form-group col-xs-12 col-lg-offset-2">
<button type="submit" class="btn btn-success btn-lg">Generate Password</button>
<h2 class="col-lg-12 text-right"></h2>
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center">
<h2>Answer = {{result}}</h2>
<hr class="star-primary">
</div>
</div>
</form>
</div>
</div>
</section>
{% endblock %}

{% block footer%}
{% endblock %}
18 changes: 16 additions & 2 deletions templates/python_apps.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<div class="container" id="maincontent" tabindex="-1">
<div class="row">
<div class="col-lg-12">
<img class="img-responsive" src="/static/img/learn_python.jpeg" alt="">
<img class="img-responsive" src="https://pbs.twimg.com/profile_images/1342851829911138304/B2lhrPdn_400x400.jpg" alt="">
<div class="intro-text">
<h1 class="name">Simple Python Apps</h1>
<hr class="star-light">
<span class="skills">Let's Play!</span>
<span class="skills">Python App Showcase</span>
</div>
</div>
</div>
Expand Down Expand Up @@ -43,6 +43,20 @@ <h1>Addition</h1>
<img src="/static/img/add_preview.png" target="_blank" class="img-responsive" alt="Cabin">
</a>
</div>

<div class="row">
<div class="col-sm-4 portfolio-item">
<h1>Password Generator</h1>
<a href="/password_generator" target="_blank" class="portfolio-link" data-toggle="modal">
<div class="caption">
<div class="caption-content">
<i class="fa fa-search-plus fa-3x"></i>
</div>
</div>
<img src="/static/img/add_preview.png" target="_blank" class="img-responsive" alt="Cabin">
</a>
</div>

<div class="col-sm-4 portfolio-item">
<h1>Shopping List</h1>
<a href="/shopping_list" target="_blank" class="portfolio-link" data-toggle="modal">
Expand Down