Sammi Jiang

@minmushroom

Joined on Oct 26, 2020

  • Mac os install Python 3 with brew brew install python3 install pip pip3 install -U pip
     Like  Bookmark
  • run local ethereum mainnet fork and connect MetaMask. 以hardhat run reference: https://hardhat.org/hardhat-network/guides/mainnet-forking.html 到 https://www.alchemy.com/ 註冊 Apps -> view key 拿取key terminal run npx hardhat node --fork https://eth-mainnet.alchemyapi.io/v2/<key>
     Like  Bookmark
  • 先理解git的每個狀態 local本地退版,並保留做錯的文檔 從 7a525f0 回到 8cfae32,但是想在工作區保留這段時間(7a525f0)更改的文檔. 在 8cfae32 reset current branch to this commit -> hard. 再到之前的head 7a525f0 reset current branch to this commit -> soft. stage 區域就會有 7a525f0 的修改. 最後結果不會砍掉 7a525f0 而是以 cae30e2 覆蓋.
     Like 7 Bookmark
  • 小組資訊 第4組 ZOPNFT 組員分工 [Z21124008-Starks]:前端/ 智能合約撰寫 [Z21124010-George]:前端/ 智能合約撰寫 [Z21124011-Sammi]:文案/ 智能合約測試
     Like  Bookmark
  • list -> map account list -> account map. map<id,account> public Map<Long, Account> getIdAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, account -> account)); } public Map<Long, Account> getIdAccountMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Function.identity()));
     Like  Bookmark
  • with hardhat project mkdir cd npm init --yes npm install --save-dev hardhat npx hardhat after creating a project. it will shows as below. It creates major directories for you.
     Like  Bookmark
  • 這樣寫法的 mysql server 不是任意服務都可以連上! 這個docker-compose是以bridge network,所以只有在同一張docker-compose上的服務才能順利連接到mysql-server. 用文件來管理,可以避免每次要起服務都得下command,而文件管理也很簡單,共兩個文件 Dockerfile 定義服務的版本和環境 docker-compose.yml
     Like  Bookmark
  • 用docker起k8s的服務 setting -> 勾選Enable 且 Apply之後重新開機. 再回到這個頁面, 按下Reset Kubernetes Cluster. cmd 確認是否成功連上 以k8s起mysql
     Like  Bookmark
  • @ApiModelProperty( name = "id", value = "id") @JsonFormat(shape = JsonFormat.Shape.STRING) protected Long id; @Excel(name = "读取时间") @ApiModelProperty(name="readTime", value = "读取时间") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") private String readTime;
     Like  Bookmark
  • create a new project by hardhat, a Hardhat project with Hardhat Upgrades plugin, Hardhat Defender, ethers.js and dotenv installed.. npm install --save-dev @openzeppelin/hardhat-upgrades @openzeppelin/hardhat-defender @nomiclabs/hardhat-ethers ethers doten Create upgradeable contract in this case, we have Box.sol Deploy upgradeable contract
     Like  Bookmark
  • 是參考韓國開發者寫的,怕自己久久才開一次jmeter會忘記,所以這只是個翻譯紀錄:) download: https://jmeter.apache.org/download_jmeter.cgi after downloading, using command and go to jemter/bin directory ./jmeter # or following command sh jmeter
     Like 1 Bookmark