java-unit-test

2.8 test 應該放何處

通常(typical),unit tests放到 獨立的(separate)工程或者文件夾。
Gradle/Maven convention

  • src/main/java for java classes
  • src/test/java for test classes

最详细各平台「粤拼」安装使用

Mac

  • 下載
    https://rime.im/download/

  • 安裝之後,下載並extract所有到/Library/Input Methods/Squirrel.app/Contents/SharedSupport/
    https://github.com/rime/rime-jyutping

  • 修改/Library/Input Methods/Squirrel.app/Contents/SharedSupport/default.yaml
    添加jyutping

    1
    2
    3
    schema_list:
    - schema: luna_pinyin_simp
    - schema: jyutping

Linux

Windows 10/7

配色 https://gist.github.com/deamwork/7cfb49777c2f163a475c71521cf7dd6e
Rime指南 https://github.com/rime/home/wiki/CustomizationGuide
Rime配色網 https://bennyyip.github.io/Rime-See-Me/

Mac 個人配置

dfds

dfd

軟件列表

使用贴士

如果 要使用 Macbook 電池 爲 手機 充電,必需 設定:

brew install –HEAD neovim

SSR 服務器設定

如何關閉防火牆

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 防火牆運行狀態
sudo firewall-cmd --state

# 回應
Output
running

# 臨時關閉Firewall
sudo systemctl stop firewalld

# 永遠關閉
sudo systemctl stop firewalld
sudo systemctl disable firewalld

# 回應
output
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

# 防止其他服務開啓firewall
sudo systemctl mask --now firewalld

# 回應
Created symlink from /etc/systemd/system/firewalld.service to /dev/null.

改變root密碼

1
passwd

安裝

1
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh