Skip to content

Instantly share code, notes, and snippets.

Subscribe to my newsletter

Chee Aun cheeaun

Subscribe to my newsletter
View GitHub Profile
View crowd-density-1.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 49 columns, instead of 36. in line 8.
cheeaun / mapbpx-tiles3dloader.js
Created October 9, 2021 01:29
Mapbox GL JS + Tiles3DLoader example
View mapbpx-tiles3dloader.js
import MapboxLayer from '';
import { Tiles3DLoader } from '';
import { Tile3DLayer } from '';
const buildingsLayer = new MapboxLayer({
id: 'buildings',
type: Tile3DLayer,
data: 'URL TO tileset.json',
loader: Tiles3DLoader,
loadOptions: {
View TimeSymbol.jsx
export default function TimeSymbol({ type = 'wd' }) {
const count = 3;
const size = 6;
const gutter = 1;
const typeHighlights = {
wd: [0, 1, 0],
sat: [0, 0, 1],
sun: [1, 0, 0],
const typeColor = {
cheeaun /
Last active August 10, 2021 12:09
Karabiner script to map new Macbook Globe🌐/fn key to open Mumu emoji picker
cheeaun /
Last active June 8, 2021 03:43
youtube-dl download specifc format
  1. youtube-dl -F VIDEO_ID - shows a list of formats available with codes in the first column
  2. youtube-dl -f FORMAT_CODE VIDEO_ID - specify the format code and download the exact format
cheeaun /
Last active November 23, 2022 14:23
macOCR script for Raycast. Preview
# Dependency: requires macOCR
# Download:
# @raycast.schemaVersion 1
# @raycast.title macOCR
# @raycast.mode silent
# Lim Chee Aun
# @raycast.authorURL
cheeaun / polyline.svg
Created April 29, 2021 13:01
Render encoded polyline on SVG: polyline.svg#[ENCODED_POLYLINE_STRING]
View polyline.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
cheeaun / random-chmod-commands.txt
Last active August 26, 2022 08:37
Random chmod commands
View random-chmod-commands.txt
Set all files to 644
> find . -type f -exec chmod 644 {} \;
Set all folders to 755
> find . -type d -exec chmod 755 {} \;
Set all .bin files to executable
> chmod +x node_modules/.bin/*
Find all .bin files
View wishes.csv
We can't make this file beautiful and searchable because it's too large.
yy,Happy birthday Singapore!! Thank you Moments of Life team for creating this!,103.762,1.354
wj,Happy Birthday Singapore!,103.8,1.274
Cindy Lim Qiu Xia,Happy birthday to Singapore .,103.885,1.326
GJ,Happy Birthday Singapore!,103.873,1.368
Alexa,"Thanks for being there for my yesterdays, for growing with me into my today, and for giving me hope towards my tomorrow. Happy 55th and to more glorious years ahead! 😍 🇸🇬",103.806,1.443
GJ,Happy Birthday Singapore!!,103.873,1.368
Tanglin Boy,I love Singapore from the bottom of my heart! Happy National Day!,103.79851,1.2992
Tom,HBD Singapore!,103.80249,1.27221
z,"Happy Birthday, Singapore!",103.93579,1.36536