Some useful git commands
Commands
list all branches
git branch -a
get the difference between two branches, including a local branch and a remote branch
git diff <mainbranch_path> <remotebranch_path>
git diff
用Python Django建立自己的blog - 01 安裝篇
Raspberry Pi簡介與系列產品比較
購買方針
需完整功能: Pi 5 > Pi 4 B
需作業系統但只做簡單的事情: Zero系列
做簡單的IoT不需作業系統: Pico系列 (建議選W版本, 新手請選WH)
需網路/藍芽: W版本
需針腳已焊好的: H版本
Some useful tips for Heroku
Upgrading stack of an app
Use the stack:set command via Heroku CLI:
heroku stack:set heroku-22 -a <app name>
Then rebuild your app to take effect of the change. You can create an empty commit to trigger a new build:
git commit --allow-empty -m "Upgrading to heroku-22"
git push heroku master
Raspberry Pi commands
Todoist Telegram bot
In this article, we will build an telegram bot for reminders from todoist.
Why do I need a telegram bot for todoist?
The answer is obvious – the free reminder function (as no reminder for a free todoist account).
Steps:
Install todoist api Python Client
pip install todoist-api-python
Sayings - 名言
Sayings - 名言
read more使用TTL RS232(PL2303HX)上傳程式碼至ESP8266 NodeMCU
使用TTL RS232(PL2303HX)上傳程式碼至ESP8266 NodeMCU
read more如何做出如window右下角的月曆?
如何做出如window右下角的月曆?
read moresubscribe via RSS