Skip to content

Instantly share code, notes, and snippets.

View yeehanchung's full-sized avatar

Yeehan yeehanchung

View GitHub Profile
@yeehanchung
yeehanchung / clean_code.md
Created September 1, 2023 15:48 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@yeehanchung
yeehanchung / index.md
Last active October 20, 2021 15:23
cz-conventional-changelog (type of change)

Select the type of change that you're committing:

  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
@yeehanchung
yeehanchung / .gitignore_global
Last active August 21, 2021 14:42
my dotfiles - remember to replace the name on line 5 in zshrc file | source: https://dev.to/swyx/my-new-mac-setup-4ibi
# run git config --global core.excludesfile ~/.gitignore_global
.DS_Store
._.DS_Store
**/.DS_Store
**/._.DS_Store
.vscode
.idea
Thumbs.db
@yeehanchung
yeehanchung / README.md
Last active January 1, 2021 03:48 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet.

A FORKED better markdown cheatsheet, but with improvements.

  • Check out Revisions tab for changes.
@yeehanchung
yeehanchung / README.md
Created December 23, 2020 05:04
United Nations World Population Prospects 2019
@yeehanchung
yeehanchung / README.md
Last active December 23, 2020 02:41
CSS Named Colors