This commit is contained in:
louiscklaw
2025-02-01 02:11:35 +08:00
parent 3de8aea20a
commit fd478ce2cc
25 changed files with 3471 additions and 0 deletions

7
gitUpdate.bat Normal file
View File

@@ -0,0 +1,7 @@
git status .
@pause
git add .
git commit -m"update yntam123,"
start git push

7
meta.md Normal file
View File

@@ -0,0 +1,7 @@
---
tags: google sheet
---
# yntam123
## history

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 KiB

36
task1-quote/NOTES.md Normal file
View File

@@ -0,0 +1,36 @@
---
tags: google sheet
---
https://docs.google.com/spreadsheets/d/1Rp2gl4A9IcnwEInH6DkFsI-20IpPk4ncwal6qiGO9BQ/edit
朋友幫我做咗少少 Testing. 用咗呢條 formula
可以嘅話,我錄段短片俾你講解我想做嘅嘢 🙏
## 簡單啲嚟講,我將成條問題分開做兩部分
- 第一部分係更表
1. 其實你頭先講嗰啲嘢都係可以做得到嘅,問題只係出現喺,你會唔會有一套以往嘅方法去做 (flow),同埋價錢。
2. 如果你有一套以往嘅方法/流程 (即係 flow 啦) 去做咁我就可以用個 script 嚟去就你個 flow, 去 gen 返你現有嘅表出嚟,
### 現有方法
- 現在目前嘅方法係 steps
- 輸入人手逐日 輸入 google calender.
- 我要搞清楚邊個 "google calendar"
- google calendar ?
- google sheet -> a.k.a. calendar ?
- Search by staff or centre name and date range,
- then screencap to the staff or centre
- center 表
- 技師表
3. 於你嚟講我諗你最複雜嗰部分係有三十幾個同事要編更,同埋你 centre 數目都唔少,你會唔會已經有個方法去處理到啲三十幾個同事同埋呢度咁多個 centre 佢哋之間個資源編配,你 show 比我睇果個表會唔會同一時間需要 share 比其他同事用?
- 對. 這個大表不能給 30 多位同事看的, 因為他們都想返交通最方便嘅 centre. 會質疑安排是否公平,所以索性不讓他們看到大表 4. 我想問下你平時係咪都係習慣用手機嚟去做個更表,不經電腦?
- 第二部分係個統計
1. 都係做乜都得,搞掂個 "更表" 先啦

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

View File

@@ -0,0 +1,347 @@
1
00:00:00,256 --> 00:00:06,400
唔同技師去唔同嘅cent
2
00:00:06,656 --> 00:00:09,728
咁呢個係7月嘅duty
3
00:00:09,984 --> 00:00:10,752
嘅表啦
4
00:00:12,032 --> 00:00:16,896
上面咁我有第一個column呢就係個centre嘅
5
00:00:17,152 --> 00:00:17,664
6
00:00:18,176 --> 00:00:22,528
咁有顏色嗰啲呢就係話嗰日會開嘅舖頭名啦
7
00:00:22,784 --> 00:00:28,928
感冒顏色啊嗰啲呢就冇冇話冇特別太嘅聲
8
00:00:29,184 --> 00:00:31,232
咁譬如我哋睇
9
00:00:31,488 --> 00:00:32,512
7月2號
10
00:00:33,536 --> 00:00:34,304
呢一個
11
00:00:37,376 --> 00:00:38,400
B可能呢
12
00:00:38,656 --> 00:00:39,424
就會係
13
00:00:41,472 --> 00:00:43,264
個center嘅名呀
14
00:00:44,032 --> 00:00:47,104
咁所以見到7月2號就有淺綠色
15
00:00:48,128 --> 00:00:49,152
石橋jp
16
00:00:49,408 --> 00:00:53,248
欸舖頭啦咁有藍色啦就係kai黃舖頭啦
17
00:00:53,504 --> 00:00:55,296
紫色石impact舖頭
18
00:00:55,552 --> 00:00:59,648
綠色就係live cam舖頭淺黃色呢就係oc舖頭
19
00:01:00,160 --> 00:01:03,232
所以呢日呢係有五間舖頭嘅
20
00:01:03,488 --> 00:01:05,024
咁sea column
21
00:01:05,280 --> 00:01:06,816
就係返工嘅職員啦
22
00:01:09,888 --> 00:01:12,192
而家就係咁樣啦咁所以呢
23
00:01:13,216 --> 00:01:17,568
欸有有啲牆呢就需要大部分都係需要一個職員返工嘅
24
00:01:18,336 --> 00:01:19,872
咁如果有兩個職員呢
25
00:01:20,128 --> 00:01:20,896
我就會
26
00:01:21,408 --> 00:01:22,688
用開就會用
27
00:01:23,200 --> 00:01:25,248
兩個road去代表嘅
28
00:01:27,296 --> 00:01:32,928
點解有啲sell呢係咁多個名呢其實係咪finalize嘅最後四個會揀一個返工囉
29
00:01:33,696 --> 00:01:39,328
咁就變咗7月1去到最尾呢就每日咁樣寫喇就變咗呢7月
30
00:01:39,840 --> 00:01:42,144
31號呢都填滿曬喇
31
00:01:42,656 --> 00:01:47,264
咁我呢而家就係想而家呢係咁樣做嘅要filter
32
00:01:48,800 --> 00:01:53,408
邊一個人返工呢我就咁樣啦個centre邊一日會開
33
00:01:55,200 --> 00:01:57,504
譬如我就會變成咁喇
34
00:02:03,136 --> 00:02:08,768
咁樣呢就會收曬紫色呢間舖頭impact會
35
00:02:09,280 --> 00:02:15,424
返工嘅人會開舖頭嘅時間啦同埋嗰個日期同
36
00:02:15,680 --> 00:02:16,704
返工嘅職員啦
37
00:02:17,984 --> 00:02:19,264
咁如果
38
00:02:20,032 --> 00:02:20,800
調返轉
39
00:02:21,056 --> 00:02:21,568
因為我
40
00:02:21,824 --> 00:02:26,176
要每個月嘅月尾呢就要話畀一間舖頭聽
41
00:02:26,432 --> 00:02:29,248
欸邊一個員工會派過嚟開工嘅
42
00:02:30,784 --> 00:02:33,088
同一時間我亦都要話畀技師聽
43
00:02:34,368 --> 00:02:38,208
欸下個月嘅duty去邊一個舖頭度出勤嘅
44
00:02:40,512 --> 00:02:42,560
咁所以同一時間呢
45
00:02:44,096 --> 00:02:44,864
我呢又要
46
00:02:45,120 --> 00:02:45,632
Re
47
00:02:45,888 --> 00:02:46,912
曬佢啦
48
00:02:52,032 --> 00:02:55,360
呢位阿蛋職員呢叫佢嘅centre啦
49
00:02:55,872 --> 00:02:57,408
同埋唔同嘅時間呀
50
00:02:57,920 --> 00:02:58,432
51
00:02:58,688 --> 00:02:59,712
由於呢一個
52
00:03:01,504 --> 00:03:04,576
今日我有差唔多30個同事呀
53
00:03:04,832 --> 00:03:09,440
咁樣呢就變咗每一次呢都要filter好多次囉
54
00:03:09,952 --> 00:03:11,744
同埋
55
00:03:12,256 --> 00:03:14,304
咁我呢就想
56
00:03:15,072 --> 00:03:16,608
可唔可以
57
00:03:17,120 --> 00:03:17,632
佢會
58
00:03:18,144 --> 00:03:19,680
將每一個同事呢
59
00:03:20,192 --> 00:03:21,216
就自動
60
00:03:22,240 --> 00:03:26,592
去咗個新嘅page嗰度假設一個新嘅page係呢一邊啦
61
00:03:26,848 --> 00:03:27,616
咁就會列
62
00:03:27,872 --> 00:03:30,688
阿旦唔同嘅技師咁
63
00:03:31,456 --> 00:03:35,552
佢有30個幾支就可能有30頁啦咁同埋唔同嘅centre
64
00:03:36,064 --> 00:03:39,904
Display曬出嚟得唔得呢
65
00:03:40,160 --> 00:03:43,744
又或者喺上面呢啲空間就整一啲不同嘅
66
00:03:44,256 --> 00:03:45,280
整一啲不同嘅
67
00:03:45,536 --> 00:03:51,424
提我要impact紫色嘅咁撳一下咁就會好快咁樣filter咗
68
00:03:51,680 --> 00:03:52,960
欸impact咯
69
00:03:53,984 --> 00:04:00,128
我要舖頭易嘅撳一撳撳一下我舖頭二咁就可以好快咁樣filter喇
70
00:04:00,384 --> 00:04:01,408
咁同一道理
71
00:04:01,664 --> 00:04:02,432
72
00:04:02,688 --> 00:04:04,992
嗰度就係個職員啦有30個職員啦
73
00:04:05,248 --> 00:04:08,832
其實我想要一號職員返邊度我撳一撳一號職員
74
00:04:09,088 --> 00:04:11,136
咁就可以filter咗出嚟囉
75
00:04:11,392 --> 00:04:15,488
咁譬如二號職員啊呢個月可以放大假武功嘅
76
00:04:15,744 --> 00:04:20,351
咁我都撳過欸二號職員呢佢都filter出嚟呢就會話畀佢知呀
77
00:04:23,935 --> 00:04:28,543
同時都唔會話偏坐監明明佢係放大假又編咗佢要返工咁樣囉
78
00:04:30,079 --> 00:04:34,943
咁同埋呢仲有一樣呢就係每一個職員呢佢有個hour rate嘅
79
00:04:35,455 --> 00:04:36,991
咁每一間舖頭呢
80
00:04:38,015 --> 00:04:39,295
每一間舖頭呢
81
00:04:39,551 --> 00:04:40,319
咁我都會
82
00:04:41,087 --> 00:04:43,647
實收佢個outrage幾錢嘅
83
00:04:43,903 --> 00:04:46,975
咁所以我就諗緊可唔可以做一啲simple analysis呢
84
00:04:47,231 --> 00:04:49,279
Short咗出嚟之後呢就會心噏
85
00:04:49,535 --> 00:04:50,303
佢嘅
86
00:04:51,327 --> 00:04:56,191
員工嘅rotor嘅人工啦又或者嗰間舖頭會
87
00:04:56,447 --> 00:04:59,519
譬如我幾多錢咁樣囉

View File

@@ -0,0 +1,85 @@
唔同技師去唔同嘅cent
咁呢個係7月嘅duty
嘅表啦
上面咁我有第一個column呢就係個centre嘅
咁有顏色嗰啲呢就係話嗰日會開嘅舖頭名啦
感冒顏色啊嗰啲呢就冇冇話冇特別太嘅聲
咁譬如我哋睇
呢一個
B可能呢
就會係
個center嘅名呀
咁所以見到7月2號就有淺綠色
石橋jp
欸舖頭啦咁有藍色啦就係kai黃舖頭啦
紫色石impact舖頭
綠色就係live cam舖頭淺黃色呢就係oc舖頭
所以呢日呢係有五間舖頭嘅
咁sea column
就係返工嘅職員啦
而家就係咁樣啦咁所以呢
欸有有啲牆呢就需要大部分都係需要一個職員返工嘅
咁如果有兩個職員呢
我就會
用開就會用
兩個road去代表嘅
點解有啲sell呢係咁多個名呢其實係咪finalize嘅最後四個會揀一個返工囉
咁就變咗7月1去到最尾呢就每日咁樣寫喇就變咗呢7月
咁我呢而家就係想而家呢係咁樣做嘅要filter
邊一個人返工呢我就咁樣啦個centre邊一日會開
譬如我就會變成咁喇
咁樣呢就會收曬紫色呢間舖頭impact會
返工嘅人會開舖頭嘅時間啦同埋嗰個日期同
返工嘅職員啦
咁如果
調返轉
因為我
要每個月嘅月尾呢就要話畀一間舖頭聽
欸邊一個員工會派過嚟開工嘅
同一時間我亦都要話畀技師聽
欸下個月嘅duty去邊一個舖頭度出勤嘅
咁所以同一時間呢
我呢又要
Re
曬佢啦
呢位阿蛋職員呢叫佢嘅centre啦
同埋唔同嘅時間呀
由於呢一個
今日我有差唔多30個同事呀
咁樣呢就變咗每一次呢都要filter好多次囉
同埋
咁我呢就想
可唔可以
佢會
將每一個同事呢
就自動
去咗個新嘅page嗰度假設一個新嘅page係呢一邊啦
咁就會列
阿旦唔同嘅技師咁
佢有30個幾支就可能有30頁啦咁同埋唔同嘅centre
Display曬出嚟得唔得呢
又或者喺上面呢啲空間就整一啲不同嘅
整一啲不同嘅
提我要impact紫色嘅咁撳一下咁就會好快咁樣filter咗
欸impact咯
我要舖頭易嘅撳一撳撳一下我舖頭二咁就可以好快咁樣filter喇
咁同一道理
嗰度就係個職員啦有30個職員啦
其實我想要一號職員返邊度我撳一撳一號職員
咁就可以filter咗出嚟囉
咁譬如二號職員啊呢個月可以放大假武功嘅
咁我都撳過欸二號職員呢佢都filter出嚟呢就會話畀佢知呀
同時都唔會話偏坐監明明佢係放大假又編咗佢要返工咁樣囉
咁同埋呢仲有一樣呢就係每一個職員呢佢有個hour rate嘅
咁每一間舖頭呢
每一間舖頭呢
咁我都會
實收佢個outrage幾錢嘅
咁所以我就諗緊可唔可以做一啲simple analysis呢
Short咗出嚟之後呢就會心噏
佢嘅
員工嘅rotor嘅人工啦又或者嗰間舖頭會
譬如我幾多錢咁樣囉

1
task1-quote/slides_src/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.html

BIN
task1-quote/slides_src/assets/email-screenshot.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>

After

Width:  |  Height:  |  Size: 963 B

BIN
task1-quote/slides_src/assets/resend.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
task1-quote/slides_src/assets/run_script.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
task1-quote/slides_src/assets/send_email_done.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
task1-quote/slides_src/assets/wanted_row.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -ex
npx marp -w index.md
npx marp --pdf --allow-local-files ./index.md

View File

@@ -0,0 +1,58 @@
---
marp: true
title: Helloworld
description: Hosting Marp slide deck on the web
theme: uncover
paginate: true
_paginate: false
header: '**google apps script send email**'
footer: '![height:20px](./assets/github-mark.svg) https://louiscklaw.github.io'
---
<!-- headingDivider: 2 -->
# google apps script
send email
## 目的: 通知報名者
1. 已獲取錄
1. 付款
## 做法:
- 頁面 '學員進度'
- 欄 '通知日期' 中,該列 "變成" 觸發日期
- 欄 '繳費進度' 自己轉為 "已通知"
- 自動 SEND EMAIL 去 同列的 '電郵地址'
## requirement/需要資料:
1. 係學員進度呢個頁面度
1. 首先 "繳費進度" 要係未通知
1. 跟住 "電郵地址" 要係一個有效嘅地址
1. 加埋 "付款連結" 要係一條 link ()
![height:250px](./assets/wanted_row.png)
## how to run/點行呢?
1. click "Automator Menu"
1. click "send 繳費通知 (未通知 -> 己通知)"
![height:250px](./assets/run_script.png)
## done/行完?
**send 左 email 的話:**
1. 繳費進度 由 "未通知" -> "已通知"
1. 通知日期 會填上 "日期"
![width:900px](./assets/send_email_done.png)
## email/電郵?
![height:500px](./assets/email-screenshot.png)
## resend/s重發 email?
1. 將繳費進度由 "己通知" 轉番去 "未通知",
1. 然後再行個 script 一次 (slide 5)
![height:300px](./assets/resend.png)
## QnA/問問題?
😃

BIN
task1-quote/slides_src/main.png (Stored with Git LFS) Normal file

Binary file not shown.

2887
task1-quote/slides_src/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,18 @@
{
"name": "catmk2-presentation",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"gitUpdate": "git add . && git commit -m \"update catmk2-presentation,\" && git push",
"build": "rm -rf *.html **/*.html && yarn marp -I . -o .",
"watch": "npx nodemon -e \"*.md\" --exec yarn build"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@marp-team/marp-cli": "^2.0.4"
}
}

Binary file not shown.