菲律賓

朋友實際情況 1、飯店房間:永遠都會有蟑螂(小隻、大隻),旁邊可能有火車、有快速道路吵 2、水電很貴:吹冷氣的話,一個月八九千上下吧 3、網路超爛:公司網路用都會有回應變慢情況,有時手機網路還比公司網路好,手機吃到飽的網路,到一定額度就會變慢速 4、外食:一個月花到1萬,公司有補助的話,會降低費用 ========= 有賭牌? 9g工簽? 領美金? 包機票? 年假? 宿舍住到爽? 薪水稅後? 醫保? 菲律宾法律规定50k内薪水15%税务 70k是20百分比 90k是35% 100k以上好像是45% 这个个人薪资纳税比例 这就是为啥很多公司办理签证的合约都写35000peso的原因 因为这样个人纳税就是5000多peso左右 ====== 大陽城 鳳凰城 TC Gaming

2018-08-22 · 1 min · 26 words · Me

rtmp to webrtc

Success Can RTMP to WebRTC On iOS 11 up can play.

2018-08-21 · 1 min · 11 words · Me

Struct to Map by Tag

telegram Gopher 台灣 @winampmaker https://play.golang.org/p/RObzlfjZSRi ` func struct2Map(model interface{}, tagName string) map[string]interface{} { m := make(map[string]interface{}) r := reflect.ValueOf(model) total := r.NumField() for i := 0; i < total; i++ { m[r.Type().Field(i).Tag.Get(tagName)] = r.Field(i).Interface() } return m } ` ============================ ` "github.com/fatih/structs" func StructtoMapbyTag(tr interface{}, tag string) map[string]interface{} { t := make(map[string]interface{}) //儲存處理過的m s := structs.New(tr) m := s.Map() //先轉成map[string]interface{} for key, value := range m { t[s.Field(key).Tag(tag)] = value.(string) } return t } `

2018-08-20 · 1 min · 75 words · Me

font size conversion px em

https://websemantics.uk/tools/convert-pixel-point-em-rem-percent/ https://websemantics.uk/articles/font-size-conversion/ Point Pixel Em Percent Keyword Default sans-serif 6pt 8px 0.5em 50% Sample 7pt 9px 0.55em 55% Sample 7.5pt 10px 0.625em 62.5% x-small Sample 8pt 11px 0.7em 70% Sample 9pt 12px 0.75em 75% Sample 10pt 13px 0.8em 80% small Sample 10.5pt 14px 0.875em 87.5% Sample 11pt 15px 0.95em 95% Sample 12pt 16px 1em 100% medium Sample 13pt 17px 1.05em 105% Sample 13.5pt 18px 1.125em 112.5% large Sample 14pt 19px 1.2em 120% Sample 14.5pt 20px 1.25em 125% Sample 15pt 21px 1.3em 130% Sample 16pt 22px 1.4em 140% Sample 17pt 23px 1.45em 145% Sample 18pt 24px 1.5em 150% x-large Sample 20pt 26px 1.6em 160% Sample 22pt 29px 1.8em 180% Sample 24pt 32px 2em 200% xx-large Sample 26pt 35px 2.2em 220% Sample 27pt 36px 2.25em 225% Sample 28pt 37px 2.3em 230% Sample 29pt 38px 2.35em 235% Sample 30pt 40px 2.45em 245% Sample 32pt 42px 2.55em 255% Sample 34pt 45px 2.75em 275% Sample 36pt 48px 3em 300% Sample ...

2018-08-16 · 1 min · 155 words · Me

Header golang client get

Usually how to tech is ` req, err := http.NewRequest("GET", "http://example.com", nil) req.Header.Add("Authorize", "dswxswsxw") resp, err := client.Do(req) ` BUT Have problem inside. So…. use this ` headers := http.Header{ "Accept-Encoding": []string{"gzip, deflate"}, } req, err := http.NewRequest("GET", url, nil) req.Header = headers client := &http.Client{} resp, err = client.Do(req) ` More Safe.

2018-08-10 · 1 min · 53 words · Me