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 / results.md
Created May 24, 2017 16:28
Filer Test Test Suite
Browser Passes Tests Time (ms)
Chrome 48.68
Chrome Incognito 15.16
Chrome (ChromeOS) 18.30
Firefox 47.91
Firefox Private Window N/A
Safari 92.41
Safari Private Window N/A
Safari Beta Preview 87.13
@humphd
humphd / Lab 11
Created December 14, 2017 14:51
test.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OSD600-Lab 11 </title>
</head>
<body>
<script>
var url = 'https://i2.wp.com/www.marcobeltempo.com/wp-content/uploads/2016/05/mb_logo_38x38.png?fit=38%2C38&ssl=1';
var img = new Image();
@humphd
humphd / filename.js
Created March 8, 2018 18:22
This is my gist to show how they work
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The elements of the array are rearranged so as to reverse their order.
The object is returned as the result of the call
esid: sec-array.prototype.reverse
es5id: 15.4.4.8_A1_T1
description: Checking case when reverse is given no arguments or one argument
make nled
rm -Rf /root/buildroot-2018.02/output/build/nled-2.52
nled_2_52_src.tgz: OK (sha256: cf0f95edc8d399e883e38baf51f6a0cea9516761be36e75e8f14943667f7af29)
>>> nled 2.52 Extracting
gzip -d -c /root/buildroot-2018.02/dl/nled_2_52_src.tgz | tar --strip-components=1 -C /root/buildroot-2018.02/output/build/nled-2.52 -xf -
>>> nled 2.52 Patching
>>> nled 2.52 Configuring
>>> nled 2.52 Building
/bin/sed -i -e 's/cc $(CCOPTIONS)/$(CC) -static $(CPPFLAGS) $(CFLAGS) -c/g' /root/buildroot-2018.02/output/build/nled-2.52/Makefile
/bin/sed -i -e 's/cc -o/$(CC) $(LDFLAGS) -o/g' /root/buildroot-2018.02/output/build/nled-2.52/Makefile
@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
@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 / 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 / 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 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.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"
*