Skip to content

Instantly share code, notes, and snippets.

Angular 2 開發實戰:新手入門篇 實作環境說明

實作環境說明

為了能讓大家能在課堂上順利地進行實作,請先將需要的軟體全部安裝好,以下是安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]

Web Development with Laravel 5

目標

如何在開發的過程中加入測試。

  1. Model
  2. Repository
  3. Controller
  4. Auth
@chinlung
chinlung / Developer_Tools.txt
Last active April 17, 2019 06:25
工作生產力的工具
★ GitKraken:GitHub GUI Client 工具
★ Insomnia:類似 Postman 但還允許查詢 GraphQL
★ Visual Studio Code:程式碼編輯工具
★ Dash:離線查詢超過 200 種的 API 文件
★ SourceTree:Git GUI Client 工具 (跟第一個屬性重複)
★ Postico:Postgres Client
★ Hyper:Electron-Based 的 Terminal 工具
★ Notion:文件協作平台
★ Dropbox Paper:文件撰寫
★ Bear App:文件撰寫
@chinlung
chinlung / delete_mac_time_machine_local_snapshot.txt
Created April 29, 2019 08:48
刪除 MAC 時光機本機 SnapShots
tmutil listlocalsnapshotdates / |grep 20|while read f; do tmutil deletelocalsnapshots $f; done
@chinlung
chinlung / hex2b64
Last active March 2, 2020 09:51
Used to encode a field for Auth #hex2b64 #php
function hex2b64($str)
{
$raw = '';
for ($i = 0; $i < strlen($str); $i += 2) {
$raw .= chr(hexdec(substr($str, $i, 2)));
}
return base64_encode($raw);
}
/*
@chinlung
chinlung / github_gpg_key.md
Created March 20, 2020 14:25 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@chinlung
chinlung / .profile
Created March 20, 2020 14:26 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@chinlung
chinlung / Laravel-permission.md
Created December 18, 2020 07:13 — forked from muhozi/Laravel-permission.md
Setting proper permissions to laravel directory

Setting up proper permissions to a laravel directory

There are basically two ways to setup your ownership and permissions. Either you give yourself ownership or you make the webserver the owner of all files.

Webserver as owner (the way most people do it):

Assuming www-data is your webserver user.

@chinlung
chinlung / session-timeout-alert-after-livewire-scripts.blade.php
Created May 31, 2022 06:37 — forked from tanthammar/session-timeout-alert-after-livewire-scripts.blade.php
Laravel Livewire Turbolinks Blade component to keep session alive
{{-- You do not need to add this component if you are using the permanent option in the head component --}}
<script>
if (!window.sessionTimerPermanent && window.Livewire) {
window.livewire.hook('afterDomUpdate', startSessionTimer)
}
// if you are on livewire > 1.3.1 and want to avoid the default error alert
// https://github.com/livewire/livewire/pull/1146
window.livewire.onError(statusCode => {
if (statusCode === 419) {
@chinlung
chinlung / keys.txt
Created July 18, 2023 05:38 — forked from f0r34chb3t4/keys.txt
Proxifier.txt
Portable Version KEYS:
P6Z3T-UYJC9-YAK3F-APN9M-6ZDSD
FGZPK-93CWX-Q33Y6-D5URV-YXC3X
9CZQX-9YAQA-PF33L-XVUQH-NSD48
8RZ3L-H3Y5L-W2RY5-Z5M8N-C7Z2U
CCZNU-LW3LF-K9V2T-MYZFF-94667
EWZM6-3W4UX-KH922-C96GK-VGBH2
Standard Version KEYS:
4AZNW-S2YHE-LLMWM-J6EL8-7QKDL