-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
38 changed files
with
165 additions
and
3,274 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "venv3.6/bin/python" | ||
} |
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,12 @@ | ||
|
||
import boto3 | ||
|
||
# Let's use Amazon S3 | ||
s3 = boto3.resource('s3') | ||
|
||
for bucket in s3.buckets.all(): | ||
print(bucket.name) | ||
|
||
# Upload a new file | ||
data = open('./static/favicon-32x32.png', 'rb') | ||
s3.Bucket('thegratefulbrauer').put_object(Key='recipe_description_images/bbearce/recipes/favicon-32x32.png', Body=data) |
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
function convert_md_to_html(){ | ||
console.log('ran convert_md_to_html()') | ||
// Get markdown to convert | ||
var notes = document.getElementById('notes').value | ||
|
||
var converter = new showdown.Converter(); | ||
var html = converter.makeHtml(notes); | ||
|
||
var output_html = document.getElementById('output-html') | ||
output_html.innerHTML = html | ||
|
||
// Adjust what is shown | ||
if (document.getElementById('notes').style.display === 'none') { | ||
document.getElementById('notes').style.display = 'block' | ||
document.getElementById('output-html').style.display = 'none' | ||
|
||
} else { | ||
document.getElementById('notes').style.display = 'none' | ||
document.getElementById('output-html').style.display = 'block' | ||
|
||
} | ||
} | ||
|
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
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,44 @@ | ||
<div class="container"> | ||
<div class='home-input-div'> | ||
<!-- Home Section --> | ||
<div style='display: block;'> | ||
<label style='display: block;'>New Recipe Name</label> | ||
<input type=text size=25 name=recipe style='text-align: left; ' value='new recipe'> | ||
<input id=save type="button" value="Save"> | ||
</div> | ||
|
||
<div> | ||
<label style='display: block;'>Load Recipe</label> | ||
<select id='recipe_load'> | ||
{% for recipe in Recipes %} | ||
<option> {{ recipe.recipe }}</option> | ||
{% endfor %} | ||
</select> | ||
<input id=load type="button" value="Load"> | ||
</div> | ||
|
||
<div> | ||
<label style='display: block;'>Delete Recipe</label> | ||
<select id='recipe_delete'> | ||
{% for recipe in Recipes %} | ||
<option> {{ recipe.recipe }}</option> | ||
{% endfor %} | ||
</select> | ||
<input id=delete type="button" value="Delete"> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
<div class='home-app-div'> | ||
<button id=convert_md_to_html onclick="convert_md_to_html()">Toggle MD and HTML</button> | ||
<textarea id='notes' name='notes' type="text" style="display: block;">Enter New Recipe Notes</textarea> | ||
<div id='output-html' style='display: none;'></div> | ||
</div> | ||
|
||
<div class="fl-fl"> | ||
<h2>Tool Bar</h2> | ||
<a href="" target="_blank"> Like us!</a> | ||
</div> | ||
|
||
</div> |
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
Binary file not shown.
Oops, something went wrong.