Skip to content

Instantly share code, notes, and snippets.

View idhowardgj94's full-sized avatar
🎯
Focusing

HowardChang idhowardgj94

🎯
Focusing
View GitHub Profile
@idhowardgj94
idhowardgj94 / vim_cheatsheet.md
Created November 20, 2020 01:51 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@idhowardgj94
idhowardgj94 / mocha_front_end_test.md
Last active November 5, 2018 07:53 — forked from mrister/runt_test.sh
Mocha and chai example

使用mocha測試純前端的javascrit

網路上搜尋到的範例中,通常都是mocha搭配chai,測試nodejs伺服器端的程式。 要如何測試純前端讀取的javascript file呢?

nodejs的javascript,透過模組化的概念,每寫完一個function 後,必須把function export成一個模組, 在測試檔案中使用require(filepath/file)引入後,才可以對其作測試。

然而目前的網頁瀏覽器都還不認識ES6 的 export 寫法。 如果要使用這架構開發測試,最後還要經過webpack之類的程序,將ES6的 js code 編譯成目前瀏覽器看得懂的js版本。

Web Development with Laravel 5

idhowardgj94 實作記錄

實作laravel版本為最新版本 laravel 5.6

目前已知laravel 5.6 改進了預設的資料夾結構, 以及tests 方法重寫。

將針對原來 5實作的部份做修改。