Skip to content

Instantly share code, notes, and snippets.

Alan Shum alankyshum

Block or report user

Report or block alankyshum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alankyshum
alankyshum / CantoneseSearcher.js
Last active Feb 29, 2020
TamperMonkey Scripts
View CantoneseSearcher.js
/**
* 1. Install TamperMonkey
* 2. Configure a custom search engine in Chromium-based browser
* - https://humanum.arts.cuhk.edu.hk/Lexis/lexi-can/?q=%s
* 3. Save this script in TamperMonkey
* 4. When you load the page with https://humanum.arts.cuhk.edu.hk/Lexis/lexi-can/?q=機
* 5. The script will loop every second (until 10 sec) to check for the submission form
* 6. When the form is ready, it will submit the form with the word `機`
* 7. Then you will see the cantonese pronounciation from CUHK
*/
@alankyshum
alankyshum / Visual Studio Code - Mac.xml
Last active Oct 3, 2019
Visual Studio Code (Mac) Keymap Settings for Android Studio/ Intellij
View Visual Studio Code - Mac.xml
<keymap version="1" name="Visual Studio Code" parent="Visual Studio">
<action id="$Copy">
<keyboard-shortcut first-keystroke="meta c" />
</action>
<action id="$Cut">
<keyboard-shortcut first-keystroke="meta x" />
</action>
<action id="$Paste">
<keyboard-shortcut first-keystroke="meta v" />
</action>
You can’t perform that action at this time.