Skip to content

Instantly share code, notes, and snippets.

View humphd's full-sized avatar
💭
Helping others get started

David Humphrey humphd

💭
Helping others get started
View GitHub Profile
@humphd
humphd / index.html
Created February 13, 2020 20:09
HTML Examples from WEB222 Feb 12, 2020
<!-- Table Example -->
<table>
<tbody>
<tr>
<td colspan="3">1</td>
</tr>
<tr>
<td>2</td>
<td>3</td>
@humphd
humphd / users.json
Created January 27, 2020 12:40
Fake Users Data
[{"id":"30-037-5927","username":"cgotecliffe0","firstName":"Collin","lastName":"Gotecliffe","email":"[email protected]","score":4033},
{"id":"75-536-1230","username":"cpeppett1","firstName":"Clerc","lastName":"Peppett","email":"[email protected]","score":4686},
{"id":"92-051-5244","username":"nbaudts2","firstName":"Nadiya","lastName":"Baudts","email":"[email protected]","score":3262},
{"id":"34-016-9293","username":"bmoseby3","firstName":"Bunni","lastName":"Moseby","email":"[email protected]","score":438},
{"id":"24-231-6207","username":"nconkey4","firstName":"Nan","lastName":"Conkey","email":"[email protected]","score":2146},
{"id":"74-441-7599","username":"bsnelman5","firstName":"Betsy","lastName":"Snelman","email":"[email protected]","score":643},
{"id":"46-589-1373","username":"pligerton6","firstName":"Patton","lastName":"Ligerton","email":"[email protected]","score":2083},
{"id":"62-512-5616","username":"mbridewell7","firstName":"Madlen","lastName":"Bridewell","email":"mbridewe
@humphd
humphd / backgroundfile-51599.txt
Last active October 11, 2019 18:46
WEB222 - HTML Practice
Response To Council Request For Information On Red Light Camera Infractions
STAFF REPORT ACTION REQUIRED with Confidential Attachment
Response To Council Request For Information On Red Light Camera Infractions
Date: October 30, 2012
To: Government Management Committee
From: Director of Court Services and City Solicitor
Wards: All
@humphd
humphd / Code-From-Class-Updated.js
Last active October 1, 2019 00:52
Sample Email Parser
// NOTE: updated to fix some bugs on Mon Sept 30, 2019
/**
* Constructor function for an Email object.
*
* @param {String} rawEmail - text of a raw email, with headers and body
*/
function Email(rawEmail) {
// Step 1: split the raw email text into its two main parts: header and body.
// The split occurs at the first empty line (i.e., \n\n)
@humphd
humphd / count.ts
Created June 17, 2019 19:18
WEB422 Summer 2019 Week 7 Code Example: TypeScript
/**
* TypeScript rewrite of https://gist.github.com/humphd/c37e233f57c4b942ac3e8c30fae855f2
*
* Example module to get info about a multi-line string,
* written as an ES module.
*
* Takes a multiline string, and returns an Object:
*
* "here is a line of text"
*
@humphd
humphd / index.html
Created May 16, 2019 17:33
WEB422 Summer 2019 Week 2 Code Example: jQuery, Lodash, Moment
<div id="employee-tables"></div>
<script src="index.js"></script>
@humphd
humphd / count.js
Last active May 21, 2019 17:55
WEB422 Summer 2019 Week 2 Code Example: Modules
/**
* Example module to get info about a multi-line string,
* written as a node.js module.
*
* Takes a multiline string, and returns an Object:
*
* "here is a line of text"
*
* {
* lines: [
@humphd
humphd / index.html
Created April 4, 2019 02:47
WEB222 XHR Dog API Example from Class
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dogs!</title>
</head>
<body>
<form>
<label for="dog-list">Dog Breeds</label>
<select id="dog-list">
@humphd
humphd / LICENSE.md
Last active October 2, 2021 21:23
Archive of Twitter discusion on MIT License birthdate

Introduciton

The following is an archive of a number of parallel discussions that happened on Twitter on 1 April, 2019.

The original quesion was posed by me, and signal boosted by @stshank:

When was the MIT License created? I can't find any source that gives a year.

Replies

@humphd
humphd / timing.txt
Created March 14, 2019 16:18
Navigation Timing API testing with different content-type
// text/plain // application/octet-stream
connectEnd: 1552579830126 connectEnd: 0
connectStart: 1552579830126 connectStart: 0
domComplete: 1552579830151 domComplete: 1552579755465
domContentLoadedEventEnd: 1552579830150 domContentLoadedEventEnd: 1552579755465
domContentLoadedEventStart: 1552579830150 domContentLoadedEventStart: 1552579755465
domInteractive: 1552579830150 domInteractive: 1552579755465
domLoading: 1552579830137 domLoading: 1552579755462
domainLookupEnd: 1552579830126 domainLookupEnd: 0
domainLookupStart: 1552579830126 domainLookupStart: 0