2022年8月9日 星期二

[看書]複利效應

上週去新加坡玩,看到顧哥帶這本書,因為筆電沒電所以就乾脆把這本翻完

這本書的複利效應,不單單指的是用在投資上,是人生的一種態度,總覺得有點像原子習慣這本書的意義

紀錄書中喜歡的片段

2022年5月28日 星期六

[看書]致富心態

前陣子跟碩辰在聊看的書,他推薦了這本致富心態,我用反脆弱跟他交換來看
這本書提到的觀念,我覺得是不只是可以用在投資上,而是可以轉換為生活中的一種心態

寫出書中我喜歡的一些句子做紀錄

2020年8月8日 星期六

宜蘭海蝕洞划起來

很早之前就有看林展翔划船到龜山島,這件事對我來說真的太炫惹,但還是決定先挑個簡單海蝕洞的來試試看。

我們本來預計禮拜五衝上宜蘭,禮拜六早上4點到蘇澳划船,休息一天禮拜日回來,但因為低氣壓的關係浪很大有風險,因此划船行程突然店家被取消了@@

幸好可以臨時改成8/2,不然真的是白跑到宜蘭一趟0.0a

因為不用提早睡覺,我們在蘇澳閒晃,找到了這個點逛逛。隔天這邊剛好有sup的比賽

2020年8月4日 星期二

[股票] 杏輝 1734 操作檢討



第一次做飆股,不敢放太多,小賺20%就好了0.0a

發文先附圖

2020年6月26日 星期五

iwr1642 mmWave


透過使用python coding 讀取iwr1642 的binary資料

測試demo code -> mmWave_Demo_Visualizer

要使用開發環境 -> MMWAVE-STUDIO



2020年6月17日 星期三

關於現金增資

轉自: 股市獵鷹-矛隼

台股一千多檔股票
每幾天就有公司辦現金增資
什麼是現金增資?
簡單說就是用股票去換鈔票
那為什麼要用股票去換鈔票?
因為公司缺錢

2020年6月4日 星期四

Range-based for Statement (C++)


自C ++ 11起,在C ++中添加了基於ange的for循環。它在一定範圍內執行for循環。 用作與傳統for循環等效的可讀性更高的for循環,可在一定範圍的值上運行,例如容器中的所有元素。



// range-based-for.cpp
// compile by using: cl /EHsc /nologo /W4
#include <iostream>
#include <vector>
using namespace std;

int main()
{
    // Basic 10-element integer array.
    int x[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

    // Range-based for loop to iterate through the array.
    for( int y : x ) { // Access by value using a copy declared as a specific type.
                       // Not preferred.
        cout << y << " ";
    }
    cout << endl;

    // The auto keyword causes type inference to be used. Preferred.

    for( auto y : x ) { // Copy of 'x', almost always undesirable
        cout << y << " ";
    }
    cout << endl;

    for( auto &y : x ) { // Type inference by reference.
        // Observes and/or modifies in-place. Preferred when modify is needed.
        cout << y << " ";
    }
    cout << endl;

    for( const auto &y : x ) { // Type inference by const reference.
        // Observes in-place. Preferred when no modify is needed.
        cout << y << " ";
    }
    cout << endl;
    cout << "end of integer array test" << endl;
    cout << endl;

    // Create a vector object that contains 10 elements.
    vector<double> v;
    for (int i = 0; i < 10; ++i) {
        v.push_back(i + 0.14159);
    }

    // Range-based for loop to iterate through the vector, observing in-place.
    for( const auto &j : v ) {
        cout << j << " ";
    }
    cout << endl;
    cout << "end of vector test" << endl;
}

來源:https://docs.microsoft.com/zh-tw/cpp/cpp/range-based-for-statement-cpp?view=vs-2019