C.K.S. Memorial Hall and Honor Guards The Chiang Kai Shek Memorial Hall was opened to the public in 1980. The design of the architecture was based on the Sun-Yat-sen Mausoleum in Nanjing. The blue and white colors represent Taiwan's national emblem "Blue sky and white sun". The steps up to the main hall count 89 which was the age of the president Chiang as he passed away. The best way to get to this place is with Metro Green or Red line. The closest station is Chiang Kai Shek Memorial Hall. ➡Photo Album The Main Gate The Chinese inscription of the main gate used to be 大中至正 meaning Great Centrality and Perfect Uprightness. However, it is now declares the plaza Liberty Square. The characters in the inscription are placed in left-to-right sequence to follow modern practice in Taiwan. (By ancient Chinese tradition, the characters should have been placed in right-to-left sequence.) ↑The main gate ↑The night ...
發表文章
目前顯示的是 2019的文章
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式

Javascript麻瓜的練習:今天買不買股票 Exercise for Javascript Muggle: Buy or Not Buy the stock PER Price-to-Earning Ratio 本益比 CashDividend 股利 EPS Earning Per Share 如果希望買這個股票是15 年就還本 (PER=15),過去四年(2018, 2017, 2016, 2015) 平均下來,發的股利是每年平均一股 $3 (Average yearly cash dividend=$3),那麼根據這個期望值,這個股票的買點是每股 $3*15=$45。但是,這是由過去歷史來計算的。還不夠精確。我還想再加入考慮最近一年的情況。可是今年2019 的股利要等明年才發,如果我要今年買這個股票,我怎麼算出合理的買點?那就得拿最近四個 quarter 的 EPS 來估算明年可能的股利。 estimated Cash Dividend for 2019 = total of last 4 quarterly EPS * confidence level,例如,最近四個 quarter 的 EPS,加總後是 $4。但是因為中美貿易戰可能影響獲利,所以 confidence level 我設定成 70%。PER =15。那就是說,買點應該是 $4*15*0.7=$42。 我把歷史參考價 $45 跟今年預估價 $42 加總 $87 再平均,就是 $43.5。這就是我的股票的買點。 如果今天 actual 股價是 $42,那就可以買啦!那如果是 $48,那就不買啦。 stock name: X Year Cash Dividend 2015 4.5 2016 6 2017 6 2018 10 Avg ( 前四年平均股利) (4.5+6+6+10)/4 = 6.5 Historical reference price: calculate high price and low price for stock X High Price: CashDividend ...
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
Javascript麻瓜: 便利商店買東西,零錢夠不夠 For Javascript Muggle: Are your changes enough for buying a good in convenience store (exercise and codes sample) Please apply what you have learned from the following pages to check if you have enough changes in your pocket to buy a good in a convenience store. https://www.learn-js.org/en/Object_Oriented_JavaScript https://www.learn-js.org/en/Function_Context https://www.learn-js.org/en/Inheritance name of good cost to buy pennies ($0.01) nickels ($0.05) dimes ($0.1) quarters ($0.25) a $3 6 25 30 10 b $10 0 24 15 3 c $25 3 85 1 150 d $15 20 0 250 48 e $8 35 37 1 5 Your codes should be able to print the following output to the console: Good name: a, Cost: 3, Buy? YES Good name: b, Cost: 10, Buy? NO Good name: c, Cost: 25, Buy? YES Good name: d, Cost: 15, Buy? YES Good name: e, Cost: 8, Buy? NO Thefollowing sample codes has applied "...
- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
Javascript麻瓜:callback 是什麼? For Javascript Muggle: What is callback Simply put: A callback is a function that is to be executed after another function has finished executing — hence the name ‘call back’. More complexly put: In JavaScript, functions are objects. Because of this, functions can take functions as arguments, and can be returned by other functions. Functions that do this are called higher-order functions . Any function that is passed as an argument is called a callback function . Example 1, function sayHello() { console.log('Hello everyone'); } setTimeout(sayHello(), 3000) function sayHello() is a function and it is passed as an argument of the function setTimeout, i.e. the function setTimeout takes the fucntion sayHello() as its argument. setTimeout is called a higher-order function. sayHello() is called a callback function. The callback function sayHello() is executed after 3000 miliseconds is past. Callbacks ...