Skip to content

Instantly share code, notes, and snippets.

View moyuanhuang's full-sized avatar

Moyuan Huang moyuanhuang

  • San Diego, CA
View GitHub Profile
@moyuanhuang
moyuanhuang / msd_labels.txt
Created January 12, 2021 07:09
Million song dataset emotion labels
This file has been truncated, but you can view the full file.
TRAAAED128E0783FAB,0,0,0,1
TRAAAGR128F425B14B,0,1,0,0
TRAAAJN128F428E437,0,1,0,1
TRAAAZF12903CCCF6B,0,1,0,1
TRAABEV12903CC53A4,1,0,0,0
TRAABFH128F92C812E,0,0,0,1
TRAABHO12903D08576,0,0,0,1
TRAABIG128F9356C56,0,1,0,1
TRAABJS128F9325C99,0,0,0,1
TRAABNV128F425CEE1,0,0,0,1
@moyuanhuang
moyuanhuang / commit-msg
Last active May 1, 2020 23:53
Quick spelling check after commit
#!/usr/bin/env ruby
# frozen_string_literal: true
# 1. Install hunspell
# $ brew install hunspell
# 2. Download a dictionary from
# https://cgit.freedesktop.org/libreoffice/dictionaries/tree/en
# You'll need to put both `.aff` and `.dic` file in "~/Library/Spelling"
@moyuanhuang
moyuanhuang / ml_cheat_sheet.py
Created June 26, 2019 06:58
ML cheat sheet
# Easy-to-use Python package for basic machine learning
# scikit-learn: https://scikit-learn.org/stable/
# All the following examples are based on it.
# 1. Principle Component Analysis
# https://scikit-learn.org/stable/modules/generated/sklearn.decomposition.PCA.html
import numpy as np
from sklearn.decomposition import IncrementalPCA
@moyuanhuang
moyuanhuang / cli.md
Last active November 27, 2018 04:54
How to be a terminal expert
# list all python files recursively under a directory
find . -type f -name *.py
@moyuanhuang
moyuanhuang / .vimrc
Last active May 10, 2022 06:48
Define vim terminal emulator's color scheme
" Add this in your ~/.vimrc
" The corresponding color matching is
" let g:terminal_ansi_colors = [
" \ '@guibase02', '@guired', '@guigreen', '@guiyellow',
" \ '@guiblue', '@guimagenta', '@guicyan', '@guibase2',
" \ '@guibase03', '@guiorange', '@guibase01', '@guibase00',
" \ '@guibase0', '@guiviolet', '@guibase1', '@guibase3'
" \]
" set the vim's terminal emulator color scheme