Skip to content

Instantly share code, notes, and snippets.

View drewsberry's full-sized avatar

Drew - Account Moved drewsberry

View GitHub Profile
@drewsberry
drewsberry / hresult-analyser.js
Created July 24, 2017 15:16
Analyse HRESULT 32-bit code for what it means in a human readable format.
const facilities = [
{
code: 0,
name: "FACILITY_NULL",
description: "The default facility code.",
},
{
code: 1,
name: "FACILITY_RPC",
description: "The source of the error code is an RPC subsystem.",
@drewsberry
drewsberry / plot_unicode_history.py
Last active December 27, 2018 13:54
Python script for plotting how many codepoints each Unicode version has assigned
from datetime import date
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
data = [
# (version number, date, number of codepoints assigned)
("1.0.0", date(1991, 10, 1), 7161, ( 5 , 0)),
("1.0.1", date(1992, 6, 1), 28359, ( 5 , -8)),