Skip to content

Instantly share code, notes, and snippets.

View alphakevin's full-sized avatar
🌏
working remotely on a bus

Yi Ma alphakevin

🌏
working remotely on a bus
View GitHub Profile
@alphakevin
alphakevin / wechat-redirect.js
Last active March 19, 2021 05:54
User Script for wechat redirect
// ==UserScript==
// @name Wechat Redirect
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take back our freedom to visit internet!
// @author alphakevin
// @match https://weixin110.qq.com/cgi-bin/mmspamsupport-bin/newredirectconfirmcgi?*
// @grant none
// ==/UserScript==
@alphakevin
alphakevin / tree.ts
Last active July 22, 2019 07:55
Typescript: extending tree interface
// basic tree interface
interface Tree {
name: string;
value: string;
children?: Tree[];
}
// base tree interface with more properties
interface TreeLike<T extends Tree> extends Tree {
children?: T[];