#github syncing fork#
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork#syncing-a-fork-branch-from-the-web-ui
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork#syncing-a-fork-branch-from-the-web-ui
GitHub Docs
Syncing a fork - GitHub Docs
Sync a forked repository with its upstream repository using the web interface, GitHub CLI, or command line.
一直关注人类的自由意志,今天无意间点到这个视频,很喜欢。分享之。查看
YouTube
人的命運是上天注定嗎? 耗時200年,數十位頂尖科學家終於發現答案 l 老鳴TV
1755年,德國哲學家康德用凡人之眼洞悉了宇宙的秘密,他提出,我們永遠不可能認清我們所處的世界。 換句話說,世界是不可知的。 世間萬物都存在兩種表像,現象(Phenomenon)和物自體(Noumenon)。
舉個例子,我們每個人看到的向日葵其實都不一樣,由於人與人之間視網膜神經節細胞的微小差異,對黃色的感知都千差萬別。 當我們欣賞梵谷的名畫《向日葵》的時候,每個人看到的都是不同的向日葵,就是梵谷自己理解的向日葵也看不見得是那麼飽滿的黃色。
同樣,每一個人對味道的感受也是不一樣的,對聲音的感受也不一樣。…
舉個例子,我們每個人看到的向日葵其實都不一樣,由於人與人之間視網膜神經節細胞的微小差異,對黃色的感知都千差萬別。 當我們欣賞梵谷的名畫《向日葵》的時候,每個人看到的都是不同的向日葵,就是梵谷自己理解的向日葵也看不見得是那麼飽滿的黃色。
同樣,每一個人對味道的感受也是不一樣的,對聲音的感受也不一樣。…
#idea from laixintao
希望能有一个服务,我每次在自己博客引用链接都自动archive一下,读者点击的时候如果链接存活就打开原链接,否则打开archive链接。
细想一下,一个Hugo短链插件应该可以解决这个问题。但这个服务你得自己架并且保证它一直活着。我的想法是,可以将目标链接转写成下面格式的链接。
短链服务先检查original链接是否活着,活着就直接访问,死了(或者在500ms内没有开始返回数据)就跳arhived version。在生成短链时触发一下archive动作,确保需要的时候arhive 一直在。
这个方案的好处是,即使有一天短链服务死掉了,读者仍然可以拷贝original链接试试运气。
希望能有一个服务,我每次在自己博客引用链接都自动archive一下,读者点击的时候如果链接存活就打开原链接,否则打开archive链接。
细想一下,一个Hugo短链插件应该可以解决这个问题。但这个服务你得自己架并且保证它一直活着。我的想法是,可以将目标链接转写成下面格式的链接。
[链接](https://s.shukebeta.com/short-link-hash?original=orignal-link-without-encoding)
短链服务先检查original链接是否活着,活着就直接访问,死了(或者在500ms内没有开始返回数据)就跳arhived version。在生成短链时触发一下archive动作,确保需要的时候arhive 一直在。
这个方案的好处是,即使有一天短链服务死掉了,读者仍然可以拷贝original链接试试运气。
#flutter #initState #tips
The error you're encountering is caused by trying to update the UI (
To resolve this issue, you should delay the update until after the build phase. You can achieve this by using WidgetsBinding.instance.addPostFrameCallback, which schedules the code to run after the current frame has been rendered.
The error you're encountering is caused by trying to update the UI (
noteModel.content = '#${noteModel.initialTag}\n';) within the initState method, which triggers a rebuild of the widget while it is still in the build phase. This is not allowed in Flutter, as it can lead to inconsistent states.To resolve this issue, you should delay the update until after the build phase. You can achieve this by using WidgetsBinding.instance.addPostFrameCallback, which schedules the code to run after the current frame has been rendered.
#happynotes' new domain, happynotes.today is online. 🎉
下面是Web前端在CloudFlare上的自动部署代码。感谢CloudFlare免费提供部署空间。
#code #cloudflare
下面是Web前端在CloudFlare上的自动部署代码。感谢CloudFlare免费提供部署空间。
set -x && if cd flutter; then git pull && cd .. ; else git clone https://github.com/flutter/flutter.git; (cd flutter && git fetch --tags && git checkout 3.27.3); fi && ls && flutter/bin/flutter doctor && flutter/bin/flutter clean && flutter/bin/flutter config --enable-web && cp .env.production .env && sed -i "s/VERSION_PLACEHOLDER/`git rev-parse --short HEAD`/" .env && flutter/bin/flutter build web --base-href="/" --release
#code #cloudflare
happynotes.today
happy_notes
A new Flutter project.