801 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 建議提交格式 建議以這種形式填寫提交訊息 Header: <type>(<scope>): <subject> type: 代表 commit 的類別:feat, fix, docs, style, refactor, test, chore,必要欄位。 scope 代表 commit 影響的範圍,例如資料庫、控制層、模板層等等,視專案不同而不同,為可選欄位。 subject 代表此 commit 的簡短描述,不要超過 50...
616 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 基本指令與觀念 提交訊息是查看其他人提交的修改內容或自己檢查歷史記錄時重要的資料。 所以要用心填寫讓人容易理解的提交訊息。 Git 的標準提交 (commit) 訊息: 第 1 行:提交時修改內容的摘要 第 2 行:空行 第 3 行以後:修改的理由 建議以這種形式填寫提交訊息,詳細可以參考 Git commit specification # 基本指令 git init# 建立新的本地端儲存庫 (Repository)git clone [URL]# 複製遠端的 Repository 檔案到本地端。git status#...
441 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 安裝 git - Windows git 官網: https://git-scm.com/download/win 然後開啟 Git Bash # 設定 git 識別資料 在你安裝 Git 後首先應該做的事是設定使用者名稱及電子郵件。 這一點非常重要,因為每次 Git 的提交會使用這些資訊,而且提交後不能再被修改。 git config --global user.name "[使用者名字]"git config --global user.email "[電子信箱]"若你有傳遞...
664 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 前言 版本控制系統:對軟體開發過程中程式碼、文件、文檔等,發生的變更進行管理的系统,它可以幫助團隊更好的溝通協作,從而更好的進行交付。 常見的版本控制系統分為: 集中式版本控制系統,如: SVN 用主從式架構的作法 需要網路才可以工作,版本在中央服務器上 分布式版本控制系統 distributed version control,如: Git 它允許軟體開發者可以共同參與一個軟體開發專案,但是不必在相同的網路系統下工作 用對等網路的作法來處理版本控制 版本存在自己的 host...
3.4k 3 分鐘

⭐️⭐️⭐️⭐️ # 題目敘述 Write a class that allows getting and setting key-value pairs, however a time until expiration is associated with each key. The class has three public methods: set(key, value, duration) : accepts an integer key , an integer value , and a duration in milliseconds. Once the duration...
1.2k 1 分鐘

⭐️⭐️⭐️ # 題目敘述 Given a directed acyclic graph, with n vertices numbered from 0 to n - 1 , and an array edges where edges[i] = [fromi, toi] represents a directed edge from node fromi to node toi . Find the smallest set of vertices from which all nodes in the graph are reachable. It's guaranteed...
3.6k 3 分鐘

⭐️ # 題目敘述 Given an array of asyncronous functions functions and a pool limit n , return an asyncronous function promisePool . It should return a promise that resolves when all the input functions resolve. Pool limit is defined as the maximum number promises that can be pending at once. promisePool...
1.6k 1 分鐘

⭐️⭐️⭐️ # 題目敘述 In a linked list of size n , where n is even, the ith node (0-indexed) of the linked list is known as the twin of the (n-1-i)th node, if 0 <= i <= (n / 2) - 1 . For example, if n = 4 , then node 0 is the twin of node 3 , and node 1 is the twin of node 2 . These are the...
1.4k 1 分鐘

# 實作說明 在前一個實作中我們先創建了一個 images ubuntu ,在裡面安裝 nginx ,但其實我們只需要使用 nginx 而已,並不需要 ubuntu 這個作業系統。 所以接下來我們要實作撰寫一個 Dockerfile,在自己的專案中,run Dockerfile 進行部屬,而且不包含 ubuntu。 # 撰寫一個 Project 當然要現在馬上生出一個 project 有點費時,所以如果手邊沒有撰寫好的 project 也沒關係,接下來分兩部分來說: 已經有可以實作的 project 這個就很簡單,先進入 project 的資料夾。 沒有可實作的...
934 1 分鐘

# 實作說明 當一個軟體完成後要進行發布網站,我們並不會使用絕對路徑,顯示檔案位置,會使用取得主機(hosting)和網域名稱(domain name)的方式來達到。 而他人只需要訪問你的 hosting IP 或為其申請的 domain name 來 request 資料。 而常見的有兩種工具來做: Apache nginx 舉個大家比較熟悉的例子就是 xampp, 可以將檔案丟進去,訪問 localhost 進行訪問。 但是因為 xampp 是一個類似於 LAMP 的環境, 他除了 Apache 以外,還包含了 phpmyadmin、PHP、Perl 等其他東西, 如果不需要用到...