港股即時

Economic Calendar

Monday, March 14, 2022

Telegram bot

 //Set Webhook

https://api.telegram.org/bot123456:ABCDEF-1234/setWebhook?url=https://你的DomainName/你的程式路徑


{

  "ok": true,

  "result": true,

  "description": "Webhook was set"

}


=================================================

//Delete(Remove) Webhook

https://api.telegram.org/bot123456:ABCDEF-1234/deleteWebhook

{

  "ok": true,

  "result": true,

  "description": "Webhook was deleted"

}

==================================================

//Get Webhook Information

https://api.telegram.org/bot123456:ABCDEF-1234/getWebhookInfo


{

  "ok": true,

  "result": {

    "url": "",

    "has_custom_certificate": false,

    "pending_update_count": 0

  }

}


Monday, January 31, 2022

C++ for windows 10/11

  1. Download msys64 from mingw-w64.org
  2. install msys2 with installer(msys2-x86-xxxxx.exe)
  3. open msys2, type  below and let all these install/update within the msys2 terminal
    1. "pacman -Syu" 
    2. "pacman -Su"
  4. Open mingw64, type below and let all these install/update within the mingw64 terminal
    1. "pacman -Ss gcc" for C compiler
    2. "pacman -S mingw-w64-x86_64-gcc" for library update
    3. check with "gcc --version" & "g++ --version" to check whether everything install well
    4. "pacman -Ss gdb" for debugger
    5. "pacmain -S mingw-w64-x86_64-gdb" for debugger library update
    6. "gdb --version" to check everything install well 
  5. Go system environment and set Drive:\msys64\mingw64\bin as Path


Reference
Common Math functions

ASCII Table