Skip to content

Instantly share code, notes, and snippets.

Avatar

Gold Holk GHolk

View GitHub Profile
View Fuck the CCP China is West Taiwan
FUCK THE CCP 🇨🇳🇨🇳 💩💩💩
TAIWAN 🇹🇼 IS A COUNTRY 中華民國
Taiwan No.1 🇹🇼🇹🇼🇹🇼
🇭🇰 Liberate Hong Kong, 🇭🇰
🇭🇰 revolution of our times! 🇭🇰
FREE TIBET Dalai Lama 🏴󠁣󠁮󠀵󠀴󠁿🏴󠁣󠁮󠀵󠀴󠁿🏴󠁣󠁮󠀵󠀴󠁿
UYGHUR GENOCIDE
8964 TIANANMEN SQUARE MASSACRE
Tank man 占占点从从 天安門大屠殺
Commie Away 🖕☭🖕
View google-search-unredirect.user.js
// ==UserScript==
// @name google search unredirect
// @namespace http://gholk.github.io/
// @version 6
// @match https://www.google.com/search?*
// @grant none
// ==/UserScript==
function unlistenClick() {
for (const a of document.querySelectorAll('a[onmousedown]')) {
@GHolk
GHolk / element-show-mxc-reaction.user.js
Created Jun 15, 2021
show custom reaction in app.element.io, which has text content `mxc://*`
View element-show-mxc-reaction.user.js
// ==UserScript==
// @name element show mxc reaction
// @namespace http://gholk.github.io/
// @version 2
// @match https://app.element.io/*
// @grant none
// ==/UserScript==
// license under gplv3 by gholk
View tec-organize.py
#!/usr/bin/env python3
"""
write by gholk <gholk@ccns.ncku.edu.tw>
license under gpl3
"""
import glob
import os
import sys
import datetime
@GHolk
GHolk / hackmd-scroll-flip.user.js
Created Sep 7, 2019
make mouse scroll flip page in hackmd slide mode.
View hackmd-scroll-flip.user.js
// ==UserScript==
// @name hackmd scroll flip
// @namespace http://gholk.github.io/
// @version 6
// @description make mouse scroll flip page in hackmd slide mode.
// @match https://hackmd.io/*/*
// @grant none
// ==/UserScript==
if (document.querySelector('.reveal .slides')) {
@GHolk
GHolk / double-click-not-click.user.js
Last active Dec 24, 2018
prevent double click being click
View double-click-not-click.user.js
// ==UserScript==
// @name double click not click
// @namespace http://gholk.github.io/
// @description prevent double click being click
// @version 6
// @grant none
// ==/UserScript==
/*
when firefox on android use click then scroll to zoom,
@GHolk
GHolk / mathjs-eval-tag.js
Created Nov 25, 2018
this is a extension for mathjs, which allow you directly embed mathjs type variable in es6 tag template string.
View mathjs-eval-tag.js
/*
# mathjs es6 style tag template string
this is a extension for mathjs,
which allow you directly embed
mathjs type variable in es6 tag template string,
instead of pass variable by a dictionary object.
## usage
this script is useing commonjs style, use exports.
@GHolk
GHolk / maze-connect.c
Last active Nov 3, 2018
determine two point in ascii maze is connect
View maze-connect.c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
#define putsNoLn(string) fputs(string, stdout)
@GHolk
GHolk / monkey-hackmd-bookmode.user.js
Last active Jun 3, 2018
monkey patching bookmode for hackmd
View monkey-hackmd-bookmode.user.js
// ==UserScript==
// @name monkey hackmd toc
// @namespace http://gholk.github.io
// @version 9
// @grant none
// @match https://hackmd.io/*
// @match https://hackmd.ccns.ncku.edu.tw/*
// ==/UserScript==
/* this script monkey patch the hackmd easy content table,
@GHolk
GHolk / flolac-prerequisites.hs
Created May 31, 2018
2018 年報名 flolac 所要求的課前測驗
View flolac-prerequisites.hs
-- 作者 gholk
-- 日期 2018-05-31
{- 2018 年報名 flolac 所要求的課前測驗,
昨天看完前三章,現在邊看第四章邊把測驗寫完了。 -}
-- 1
myFst :: (a,b) -> a
myFst (a,b) = a