Experienced JavaScript / Node.js engineer & team lead.
Facebook Medium LinkedIn CodeSandbox GitHub Email
用 JavaScript 透過 iframe 列印 baes64 的 PDF
September 26, 2019 #JavaScript在一開始很直覺得直接使用 Data URL 的方式把 base64 字串放到 iframe 裡面,很 OK 的呈現出來了 然後在透過 iframe 裡面的 window 去 print PDF 但是遇到了一個不在預期內的問題 很明顯的是 CORS 的問題,沒有想過 Data…
放 Google AdSense 在 Gatsby 的靜態網頁上
September 23, 2019 #AdSense#GatsbyAdSense 是最受歡迎的 blog 廣告服務之一,因為最近剛從 Medium 搬到由 gatsby 自建起來的 blog,所以就放了一下 AdSense 來加減賺一點 步驟 在 Google AdSense 上面建立廣告,因為懶的關係,直接選用 AdSense…
Deploy IPsec VPN server on Kubernetes
September 23, 2019 #kubernetes#vpnNOTE: In general case, you should not setup the VPN server on the kubernetes. If you need the VPN services, you should create an independent…
DNS redirect on AWS Route53
July 31, 2019 #AWSFirst, you have to create an s3 bucket which name is your old domain (e.g. old.example.com)and enter bucket and choose “Properties…
Two ways to measure your assets loading speed
March 31, 2019 #performanceMany of you may know how to measure your site loading speed. For example, you can use chrome devtools’ performance, lighthouse or GTmetrix…