Skip to content

Instantly share code, notes, and snippets.

View xiaohk's full-sized avatar
๐Ÿ
Mr. King Chivo

Jay Wang xiaohk

๐Ÿ
Mr. King Chivo
View GitHub Profile
@xiaohk
xiaohk / iso2_to_iso3.py
Created November 24, 2024 08:27
ISO2 to ISO3 Map
iso2_iso3_map = {
"AF": 'AFG',
"AX": 'ALA',
"AL": 'ALB',
"DZ": 'DZA',
"AS": 'ASM',
"AD": 'AND',
"AO": 'AGO',
"AI": 'AIA',
"AQ": 'ATA',
@xiaohk
xiaohk / material.clr
Created September 4, 2024 07:06
material.clr
โ€Žโ€Žโ€‹
@xiaohk
xiaohk / paper-revision-markup.md
Last active December 16, 2024 00:16
Mark up paper revisions in LaTeX

How to Mark Up Paper Revisions with LaTeX

Below are three steps to highlight changes made in a paper revision with LaTeX.

Step 1. Generate a submission snapshot

We first take a snapshot of the last version of the LaTeX project before the paper's original submission. If you use Git to version control your project, it is easy to checkout the exact version used for the original submission.

  1. Use latexpand to flatten the LaTeX structure. It combines all LaTeX files into one file.
@xiaohk
xiaohk / how-to-make-taps-happy.md
Last active February 14, 2025 15:46
how-to-make-taps-happy

How To Make ACM TAPS Happy?

Here are some tips and tricks to make ACM TAPS stop complaining about your LaTeX source submission.

1. Only use ACM permitted packages

Remove all packages that are not listed in this webpage.

2. Add short description for \caption commands

@xiaohk
xiaohk / acm-cc.md
Last active March 4, 2025 22:31
How to generate CC copyblock for ACM paper

Create a CC Block for ACM Preprints

Here are two methods to create a nice CC copyright block for your ACM preprint.

First, you need to check your acmart.cls version (you can find it from the first 50 lines of this file).

version >= v1.87

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiaohk
xiaohk / material-colors.scss
Last active November 25, 2021 02:56
Use Google's Material Design colors as SCSS variables
$red-50: hsl(350, 100.0%, 96.08%);
$red-100: hsl(354, 100.0%, 90.2%);
$red-200: hsl(0, 72.65%, 77.06%);
$red-300: hsl(0, 68.67%, 67.45%);
$red-400: hsl(1, 83.25%, 62.55%);
$red-500: hsl(4, 89.62%, 58.43%);
$red-600: hsl(1, 77.19%, 55.29%);
$red-700: hsl(0, 65.08%, 50.59%);
$red-800: hsl(0, 66.39%, 46.67%);
$red-900: hsl(0, 73.46%, 41.37%);
@xiaohk
xiaohk / deploy.md
Last active February 25, 2023 08:13
Deploy to gh-pages
@xiaohk
xiaohk / octocat.svg
Created October 3, 2020 00:43
Octocat - Icon Animation ๐Ÿ™
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xiaohk
xiaohk / badge.svg
Last active January 22, 2021 16:29
Badge - Icon Animation ๐Ÿ…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.