Skip to content

Instantly share code, notes, and snippets.

import psycopg2
DBNAME = "news"
def get_news():
#connect to database news
db = psycopg2.connect(database=DBNAME)
@megdollar
megdollar / app.js
Created March 30, 2017 20:39
TikiApp
//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
const app = angular.module('spiderValley', []);
@megdollar
megdollar / helper.js
Created October 9, 2016 15:28
Resume
/*
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
*/
@megdollar
megdollar / helper.js
Created September 25, 2016 21:24
Resume
/*
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
*/
@megdollar
megdollar / Portfolio.html
Created August 19, 2016 15:55
Megan Portfolio
<!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'>