Skip to content

Instantly share code, notes, and snippets.

View ThaddeusJiang's full-sized avatar

Thaddeus Jiang ThaddeusJiang

View GitHub Profile
@ThaddeusJiang
ThaddeusJiang / React RoadMap 自检表.md
Last active April 21, 2023 14:43
React RoadMap 自检表

React RoadMap 自检表

2022年: react-roadmap-2022

2018年:

react-roadmap

1. Build Tools

@ThaddeusJiang
ThaddeusJiang / setting-codecov.md
Last active July 27, 2018 08:32
Setting Codecov

使用 Jest 做单元测试

配置

1. 配置 package.json

  "test": "cross-env CI=1 react-scripts test --env=jsdom",
  "test:watch": "react-scripts test --env=jsdom",
  "test:coverage": "npm test -- --coverage",
  // 关键
 "test:ci": "npm run test:coverage --coverageDirectory=coverage --collectCoverage",
@ThaddeusJiang
ThaddeusJiang / 使用 VSCode 作为 git commit 编辑器.md
Last active December 16, 2024 08:21
使用 VSCode 作为 git commit 编辑器
  1. 在 VSCode 中执行👇 在 VSCode 中执行 >shell command: Install 'code' command in PATH VSCode install code

  2. 在命令行执行👇

$ git config --global core.editor "code --wait"
@ThaddeusJiang
ThaddeusJiang / dev_checklist.md
Created July 10, 2018 00:07
软件开发自检表 (dev checklist)
@ThaddeusJiang
ThaddeusJiang / install-nvm.md
Last active August 17, 2018 00:44
install nvm (node version manager)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

// 手动添加到 ~/.bash_profile
export NVM_DIR="$HOME/.nvm" 
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
command -v nvm
@ThaddeusJiang
ThaddeusJiang / crontab.js
Last active July 25, 2018 05:55
my crontab
# 文件格式说明
# ——分钟(0 - 59)
# | ——小时(0 - 23)
# | | ——日(1 - 31)
# | | | ——月(1 - 12)
# | | | | ——星期(0 - 7,星期日=0或7)
# | | | | |
# * * * * * 被执行的命令
# Codeing 时长
@ThaddeusJiang
ThaddeusJiang / yarn.md
Last active May 29, 2020 03:22
yarn 紹介

高速で、信頼性が高く、そして安全な依存関係の管理

依存関係の追加

yarn add [package]
@ThaddeusJiang
ThaddeusJiang / linux_ssh_no_password.md
Last active April 16, 2019 09:56
Linux SSH 免密码登录(RSA)

本地已生成公钥,只需要一条命令

cat ~/.ssh/id_rsa.pub | ssh root@server 'cat >> .ssh/authorized_keys'

本地未生成公钥

  1. 本地生成密钥对(私钥 and 公钥)