Skip to content

Instantly share code, notes, and snippets.

View DingWeizhe's full-sized avatar

DingWeizhe DingWeizhe

  • 安永金融科技股份有限公司
  • Taiwan
View GitHub Profile
@DingWeizhe
DingWeizhe / flex.patch
Created September 3, 2019 07:32
line flex message api change
From 08e39ce10a6c40821c3668ef65f23972a21eb7bf Mon Sep 17 00:00:00 2001
From: dweizhe <d.weizhe@anyong.com.tw>
Date: Thu, 29 Aug 2019 08:19:15 +0800
Subject: [PATCH] 20190829
---
index.html | 907 +++++++++++++++++++++++++++++++++++++----------------
1 file changed, 635 insertions(+), 272 deletions(-)
diff --git a/index.html b/index.html
const api = {
addProduct: async function (req, res, next) {
const newId = await this.getNewId();
res.send(newId);
},
getNewId: async function (){
const { collection } = await connectDB('product_detail');
const result = await promisify(
collection
abstract class Invoice {
abstract public function validate();
}
class EmailInvoice extends Invoice {
public function validate() { }
}
class RealMailInvoice extends Invoice {
public function validate() { }
public company$ = this.tokenService.account$
.pipe(flatMap(account => account ? this._fetchCompany(account.companyId) : null))
.pipe(shareReplay());
import { Subject } from "rxjs";
class Article {
title?: string;
content?: string;
comments?: Comment[];
}
class Comment {
content?: string;
@DingWeizhe
DingWeizhe / r.md
Created July 26, 2017 10:56
Database Version
Employee(EID)
Customer(CID, EID)
Log(CID, Timestamp)
Insert Employee (EID) VALUES (1);
Insert Employee (EID) VALUES (2);
Insert Customer (CID, EID) VALUES (1, 1);
var Calculator = function (n) {
this.number = n;
};
 
Calculator.prototype.add = function (c) {
return new Calculator(this.number + c.number);
};
 
Calculator.prototype.multiple = function (c) {
return new Calculator(this.number * c.number);

資訊流?

由於最近在設計大人小孩都能看的網頁,發現一個很研究的事情,有人覺得字太大,又有人覺得字太小,到底有沒有一個比較好的設計方法來設定字體大小這件事?

設計大師 EvenWu 告訴我們「網頁不是畫布,是資訊流」,但我發現這件事大家都只在乎版面,而少了我認為很重要的一點 "文字大小",事實上不管是 mac 的 Chrome、Safari、 還是 ios 都有單獨調整文字大小的設定。

macOS Chrome ( 設定 > 進階 > 網頁內容 > 字型大小 ) Mac Chrome 設定>進階>網頁內容>字型大小

iOS ( 設定 > 螢幕顯示與亮度 > 文字大小 )

namespace Animates {
namespace Dogs {
class SmallDog {
}
}
}
import { SC } from "./core";
import { Global } from "./core";
@Display({
view: "/npc/kafra.js",
name: "卡普拉服務人員",
position: {
map:"prontera",
x:100,
y:100