Skip to content

Instantly share code, notes, and snippets.

View LouisSung's full-sized avatar
😷
Hope you are staying healthy and safe

LouisSung

😷
Hope you are staying healthy and safe
View GitHub Profile
@LouisSung
LouisSung / _README.md
Last active May 26, 2020 06:32
Example for adding keyboard control for NzTree (NG-ZORRO) https://github.com/NG-ZORRO/ng-zorro-antd/issues/5288
@LouisSung
LouisSung / base-api.ts
Created March 15, 2020 11:55
NestJS example
/**
* @file [Abstract Class] Base class for APIs to unify entrypoint for all implementations
* @version v1.0.0
* @author LouisSung
* @license MIT
*/
export abstract class BaseApi {
protected readonly reqBody: {[key: string]: Json;};
protected constructor(reqBody: {[key: string]: Json;}) {
@LouisSung
LouisSung / .commitlintrc.js
Last active October 8, 2021 08:53
Strict ESLint and commitlint rules (configs) for NestJS (move to: https://github.com/LouisSung/TypeScript-Linter_and_Git_Hooks)
/**
* @file [commitlint Config] Strict commitlint rules for Sysmaker API
* @version v1.0.0
* @author LouisSung
* @license MIT
* @see https://commitlint.js.org/#/reference-rules
* @see https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/rules/src
* @see https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/index.js
* @see https://medium.com/@peter3036200/git-cz-%E8%A6%8F%E7%AF%84%E4%BD%A0%E7%9A%84-commit-%E8%A8%8A%E6%81%AF-9bd8f91b3267
*/