Skip to content

Commit

Permalink
Add midterm topics and fix local timestamps (kind of)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakestambaugh committed Feb 7, 2020
1 parent f6b2d8f commit f7e8135
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
6 changes: 4 additions & 2 deletions storage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from datetime import datetime, timezone, timedelta
from google.cloud import datastore
from student import Student

Expand All @@ -15,9 +16,10 @@ def create_datastore_client():


def create_view(metadata):
print(metadata)
utc_time_presented_at = metadata["presented_at"]
local_time_presented_at = utc_time_presented_at - timedelta(hours=5)
return {
"date": metadata["presented_at"],
"date": local_time_presented_at,
"title": metadata["title"],
"url": metadata["public_url"],
}
Expand Down
32 changes: 31 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,37 @@ <h2>CS 1520: Programming Languages for Web Applications</h2>
<p>Welcome to the class page!</p>
<p>It may look sparse for now, but I'll continue adding features as we cover more web technologies in class.</p>
<p>Your fun number is {{ num }}. Go play the lottery!</p>

<hr>
<section>
<h3>Class 5 - February 6, 2020</h3>
<p>Sorry that this is going up after the class, I will make sure that everyone gets an email.</p>
<p>I have updated all of the lectures to this site, <a href="/lecture">check them out here</a></p>
<h4>Midterm Prep</h4>
<strong>Format:</strong>
<p>The exam will be 10 to 15 short response questions. Most of the questions will be answered with text, some of them may require some coding. I may add some multiple choice, true or false, or fill-in-the-blank questions.</p>
<strong>Topics:</strong>
<p>I am expecting you to be able to describe each of these topics, know specific features that we discussed in lecture, and talk about when and how they are useful in web development.</p>
<ul>
<li>HTTP Requests and Responses</li>
<li>Load balancing</li>
<li>DNS</li>
<li>Virtual Machines</li>
<li>Cloud Hosting</li>
<li>Routing</li>
<li>Templates</li>
<li>Frameworks</li>
<li>Caching</li>
<li>Latency</li>
<li>Browsers</li>
<li>The Internet (don't worry about history)</li>
<li>Python</li>
<li>JavaScript</li>
<li>HTML and CSS</li>
<li>Datastore</li>
<li>AJAX/XmlHttpRequest</li>
</ul>
</section>
<hr>
<section>
<h3>Class 4 - January 30, 2020</h3>
<p><a href="http://jvs.gr1.me/gcp">Claim your student code for GCP here</a></p>
Expand Down

0 comments on commit f7e8135

Please sign in to comment.