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
import psycopg2 | |
DBNAME = "news" | |
def get_news(): | |
#connect to database news | |
db = psycopg2.connect(database=DBNAME) |
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
//Constructor function: each question has three attributes: text, choices, answers | |
function Question(text, choices, answers){ | |
this.text = text; | |
this.choices = choices; | |
this.answers = answers; | |
} | |
//Detect answer for each choice selected in question. return true if choice = answer | |
//maybe need to change this to map each answer to each choice |
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
const app = angular.module('spiderValley', []); | |
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 all of the code running in the background that makes resumeBuilder.js possible. We call these helper functions because they support your code in this course. | |
Don't worry, you'll learn what's going on in this file throughout the course. You won't need to make any changes to it until you start experimenting with inserting a Google Map in Problem Set 3. | |
Cameron Pittman | |
*/ | |
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 all of the code running in the background that makes resumeBuilder.js possible. We call these helper functions because they support your code in this course. | |
Don't worry, you'll learn what's going on in this file throughout the course. You won't need to make any changes to it until you start experimenting with inserting a Google Map in Problem Set 3. | |
Cameron Pittman | |
*/ | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Portfolio</title> | |
<link rel="stylesheet" type="text/css" href="css/main.css"> | |
<link rel="stylesheet" type="text/css" href="css/responsive.css"> | |
<link href='https://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'> |