Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Please Participate in Our Survey!</title>
<link href="https://fonts.googleapis.com/css?family=Oswald:300,700|Varela+Round" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="header">
body {
background-color: #FFF;
margin: 0;
padding: 0px 60px;
}
.header {
background-color: #466995;
border-bottom: 1px solid #466995;
overflow-y: auto;
body {
background-color: #FFF;
font-family: 'Raleway', sans-serif;
margin: 0px;
padding: 0px;
}
.navigation {
text-align: center;
}
<!DOCTYPE html>
<html>
<head>
<title>The Terminal - Your Source for Fact-Based News</title>
<link href="https://fonts.googleapis.com/css?family=Amatic+SC|Raleway:100,200,300,400,500,600,700,800,900" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="navigation">
@harrywang
harrywang / animals.html
Created September 2, 2017 18:57
html basics
<!DOCTYPE html>
<html>
<head>
<title>Animals Around the World</title>
</head>
<body>
<h1>BREAKING NEWS</h1>
<p>The Nile River is the longest river in the world, measuring over 6,850 kilometers long (approximately 4,260 miles). It flows through eleven countries, including Tanzania, Uganda, Rwanda, Burundi, Congo-Kinshasa, Kenya, Ethiopia, Eritrea, South Sudan, Sudan, and Egypt.</p>
<a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">Learn more</a>
<p>The following are subspecies of bears:</p>
Message type: ERROR
Location: /usr/local/lib/python2.7/dist-packages/flask/app.py:1423
Module: app
Function: log_exception
Time: 2016-11-14 16:24:12,174
Message:
Exception on /sendemail [POST]
CREATE TABLE `requests` (
`id` varchar(36) DEFAULT NULL COMMENT 'Request ID assigned by the canvas system to the request.',
`timestamp` datetime DEFAULT NULL COMMENT 'Timestamp when the request was made in UTC.',
`timestamp_year` varchar(256) DEFAULT NULL COMMENT 'Year when the request was made.',
`timestamp_month` varchar(256) DEFAULT NULL COMMENT 'Month when the request was made.',
`timestamp_day` varchar(256) DEFAULT NULL COMMENT 'Day when the request was made.',
`user_id` bigint(20) DEFAULT NULL COMMENT 'Foreign key in user_dim for the user that made the request. If the request was made by one user masquerading as another, then this column contains the ID of the user being masqueraded as.',
`course_id` bigint(20) DEFAULT NULL COMMENT 'Foreign key in course_dim for the course that owned the page requested. Set to NULL if not applicable.',
`root_account_id` bigint(20) DEFAULT NULL COMMENT 'Foreign key in account_dim for the root account on which this request was made.',
`course_account_id`
@harrywang
harrywang / import.sh
Created August 18, 2016 20:32
modified import.sh
#!/bin/bash
# START OF CONFIGURATION
# dbname is the name of the Canvas Data database
dbname=canvas_data
# basedir is the directory containing the data files.
# These may be from the CLI tool or files you've manually downloaded
# The names of the files do not depend on the structure of the CLI tool
@harrywang
harrywang / gist:3ba86adaf11c9cb536465b705d1e0a10
Created August 18, 2016 20:30
canvas raw data size info (megabyte)
38208 dataImport/dataFiles/quiz_question_dim
41296 dataImport/dataFiles/wiki_page_dim
8 dataImport/dataFiles/role_dim
2304 dataImport/dataFiles/enrollment_fact
41304 dataImport/dataFiles/submission_comment_participant_dim
16404 dataImport/dataFiles/quiz_submission_fact
2724 dataImport/dataFiles/user_dim
7944 dataImport/dataFiles/quiz_question_answer_fact
40 dataImport/dataFiles/assignment_override_user_dim
11688 dataImport/dataFiles/file_fact
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {