Skip to content

Instantly share code, notes, and snippets.

View richardcornish's full-sized avatar

Richard Cornish richardcornish

View GitHub Profile
@richardcornish
richardcornish / How to create and inherit objects in JavaScript
Last active December 17, 2015 06:39
Basic notes on how to create and inherit objects the crazy-ass JavaScript way.
/* -------------------------------------------------------
Old-school way to create child objects from parent objects
--------------------------------------------------------*/
var Person = function (name, age, sex) {
this.name = name;
this.age = age;
this.sex = sex;
}
Person.prototype.sayGreeting = function () {
@richardcornish
richardcornish / html5_template.html
Last active August 10, 2023 22:02
HTML5 template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
<h1>Hello, world!</h1>
</body>
@richardcornish
richardcornish / git.md
Last active August 11, 2023 08:44
Enough Git for your résumé in 100ish lines
@richardcornish
richardcornish / typography.md
Last active November 8, 2023 01:02
Common typographical characters

Cheatsheet of common typographical characters (not an exhaustive reference). HTML character references listed are decimal numeric character references, which are the base-10 equivalent of their corresponding base-16 (hexadecimal) Unicode code point. Also see named character references.

Quotations

Glyph HTML reference Name
&#8216; Left single quotation mark
&#8217; Right single quotation mark/apostrophe
&#8220; Left double quotation mark
Right double quotation mark