Skip to content

Instantly share code, notes, and snippets.

@ronhuang
ronhuang / alps64_layout_aek_103_spacefn.json
Created August 31, 2021 14:45
ALPS64 with SpaceFN layout (QMK)
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "alps64",
"keymap": "alps64_layout_aek_103_mine",
"layout": "LAYOUT_aek_103",
"layers": [
[
"KC_ESC",
@ronhuang
ronhuang / bopomofo_hsuq.schema.yaml
Last active November 13, 2020 10:13 — forked from fillmember/bopomofo_hsuq.schema.yaml
我的RIME注音許氏方案
# Rime schema
# encoding: utf-8
schema:
schema_id: bopomofo_hsuq
name: 注音・許式Q 0.4
version: "0.4"
author:
- 佛振 <chen.sst@gmail.com>
- Patrick <ipatrickmac@gmail.com>
@ronhuang
ronhuang / solve.py
Created February 23, 2020 03:27
Simple maze solver
import sys
from collections import namedtuple
Point = namedtuple('Point', ['x', 'y'])
WIDTH = int(sys.argv[1])
HEIGHT = int(sys.argv[2])
START = Point(int(sys.argv[3]), int(sys.argv[4]))
END = Point(int(sys.argv[5]), int(sys.argv[6]))

Keybase proof

I hereby claim:

  • I am ronhuang on github.
  • I am ronhuang (https://keybase.io/ronhuang) on keybase.
  • I have a public key ASBw5iQb8xzBcJGhnbdhC5RI6tso0e8jD7SgSZDNz4x4dwo

To claim this, I am signing this object:

@ronhuang
ronhuang / bulk_transcode.applescript
Created October 20, 2012 17:05
Applescript to bulk transcode video files using Handbrake (creation/modification date preserved)
(*
** TRANSCODE TO APPLE UNIVERSAL
** This droplet will convert any file/folder dropped onto it or selected to the Apple Universal format using Handbrake.
** It currently will reuse the same filename for all files except MTS files, with which it will rename using the file's creation timestamp.
**
** by Jason Chong
** http://jasechong.wordpress.com
** jchong@iinet.net.au
**
** Revision Description
@ronhuang
ronhuang / README.txt
Created August 24, 2011 07:29 — forked from rmm5t/README.md
Added Traditional Chinese translation.
You can represent time statements in most western languages where
a prefix and/or suffix is used.
The default case is to use suffix only (as in English), which you
do by providing the `suffixAgo` and `suffixFromNow` settings in
the strings hash (earlier versions of timeago used the deprecated
`ago` and `fromNow` options). If present, they are used.
2 minutes [suffixAgo]
2 minutes [suffixFromNow]
@ronhuang
ronhuang / 00-line145-original.html
Created March 23, 2011 16:29
Main navigation menu problem at www.mixedrealitylab.org
<!-- This is line 145 of www.mixedreality.nus.edu.sg -->
<li><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/" onmouseover="mopen('m1')" onmouseout="mclosetime()">About Us<div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/cute-mxr/">CUTE / MXR</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/research/">Research</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/awardsprizes/">Awards/Prizes</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/people/">People</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/location/">Location</a><a href="http://www.mixedreality.nus.edu.sg/index.php/about-us/site-map/">Site Map</a></div></a></li><li><a href="http://www.mixedreality.nus.edu.sg/index.php/projects/" onmouseover="mopen('m2')" onmouseout="mclosetime()">Projects<div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclo