Skip to content

Instantly share code, notes, and snippets.

View hfhchan's full-sized avatar

Henry Chan hfhchan

View GitHub Profile
@hfhchan
hfhchan / strokes.txt
Created August 21, 2018 04:12
Error Total Stroke Counts in Unihan
𨙾 11
𨚆 11
𨚇 11
𨚈 11
𨚉 11
𨚊 11
𨚋 11
𨚒 11
𨚚 12
𨚠 12
@hfhchan
hfhchan / index.js
Last active September 29, 2018 08:35
Flashing Countdown Timer
target = new Date(2018, 8, 29, 17, 30, 0);
document.body.style.textAlign='center';document.body.style.color = 'green';document.body.style.font='bold 280px/1.1 Roboto,sans-serif';show=true;
window.setInterval(() => {
minsLeft = (target-(new Date())) / 60000;
document.body.innerHTML = `${Math.floor(minsLeft)} minutes left`;
if (minsLeft < 10) {
document.body.style.color = 'red';
show=!show;
}
document.body.style.display = show? 'block' : 'none'
@hfhchan
hfhchan / userscript.js
Created November 1, 2019 07:05
GlyphWiki Style improvement
// ==UserScript==
// @name GlyphWiki Style
// @namespace https://github.com/hfhchan/
// @include http://en.glyphwiki.org/*
// @include http://glyphwiki.org/*
// @version 1
// @grant none
// ==/UserScript==
var style = document.createElement("style");
@hfhchan
hfhchan / hkvariant.txt
Created May 24, 2020 18:53
HK variants analysis
= 以下寫法符合市民日常寫法,但有部分人因爲字源緣故,喜歡前者 =
僞 偽
嬀 媯
蔿 蒍
爲 為
潙 溈
衆 眾
潨 潀