2020年3月30日 星期一

2020年3月18日 星期三

[Javascript] Keyword

運算符號優先順序
javascript operator precedence

字串逃漏字元
javascript escape notation

內建物建
Standard built-in objects

2020年3月2日 星期一

[SSH] Git 和 SSH

1.開啟Git Bash

2.產生公私鑰 ssh-keygen -t rsa -C "XXX"
"XXX" = email
Enter file in which to save the key:
Enter passphrase
Enter same passphrase again
RSA 2048

3.顯示公鑰 cat ~/.ssh/id_rsa.pub

4.將公鑰新增至Server端

5.設定完畢
git clone "ssh"

2020年2月26日 星期三

[Design Pattern] Commonly Design Pattern at Front-End

Creational Pattern
  • Constructor
  • Module
  • Factory
  • Singleton
Structural Pattern
  • Decorator
  • Facade
  • Flyweight
Behavioral Pattern
  • Command
  • Mediator
  • Observer

2020年2月23日 星期日

[Javascript] What is Prototype?

Function's prototype

It is the object instance that will become the prototype for all objects created using this function as a constructor.

Object's prototype

It is the object instance from which the object is inherited.

2020年2月18日 星期二

[Docker] Common Command

1.confirm which images that we have
docker ls

2.install the specific image to container
docker container run -d --name "containerName" -p 8080:8080 "ImageName"

3.when you wanna close container
docker stop "containerName"

4.restart
docker container start "containerName"