When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"> | |
<link href="./styles.css" rel="stylesheet"> | |
<title>Hello World!</title> | |
</head> | |
<body> |
这些年我在 Amazon 上买了几近千本的电子书(其中相当一部分配有有声版的 Audiobook)。在 iOS(iPad/iPhone)上体验还算可以,有 Kindle App,也有 Audible App —— 唯一的缺陷是,每次换设备的时候,都得重新下载一遍,并且,Amazon 的开发人员执拗地在这么多年过后也不给加一个「全部下载」的方式…… 我甚至开始不讲道理地怀疑这帮鸟人自己的 Kindle 里都不超过十本书,所以才不把「下载全部」当回事儿。
MacOS 上一直就没有 Audible,得通过 iTunes 转手一遍,非常讨厌;而 Kindle App 就更讨厌了,一直保持着远古时代的 UI 不说,这都好多年了,坚决不给加上「如果有配套有声书的话就可以边朗读边划线阅读」的功能 —— 而这功能恰恰是 iOS 上的 Kindle App 最令人喜欢的,乃至于其它功能差一点都能因此忍受的……
MacOS Big Sur 刚推出的时候,增加了个功能,就是 iOS 的 App 可以直接安装到 MacOS 上 —— 真是太棒了!可惜,没高兴几天,苹果给了开发者一个选择,Amazon 的开发者选择的结果是,在 MacOS 上不能安装 Kindle for iOS,在 MacOS 只能接着用他们那个愚蠢到死的桌面版本 —— Kindle for Desktop 的团队就应该直接解散掉啊!一个常年只能打两颗星的产品,不应该着急一点吗?
现在在 MacOS App Store 里搜索 Kindle(iPhone & iPad Apps)不再显示 Kindle 了,搜出来的都是不相干的玩意……
于是,想到了个办法:
audible-converter "*.aax" -a <your-activation-bytes>
export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}"
eval "$(brew shellenv)"
brew install pyenv
pyenv install 2.7.18
ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python"
In Terminal:
ssh-keygen -t rsa -f "id_rsa_<new account name>" -C "<email of new account>"
ssh-add ~/.ssh id_rsa_<new account name>
Edit ~/.ssh/config
:
Host
tell application "Finder" | |
if (count of windows) > 0 then | |
set thePath to target of front window | |
else | |
display dialog "There are no open Finder windows." with icon caution buttons {"OK"} with title "Open Terminal Here..." | |
return | |
end if | |
end tell | |
if not (exists thePath) then |
[ | |
{ | |
"key": "ctrl+shift+'", | |
"command": "editor.action.insertSnippet", | |
"args": {"snippet": "“$TM_SELECTED_TEXT$0”"}, | |
"when": "editorTextFocus&&editorHasSelection" | |
}, | |
{ | |
"key": "ctrl+'", | |
"command": "editor.action.insertSnippet", |
# xcode needed
brew install flutter cocoapods android-studio chrome visual-studio-code
flutter doctor --android-licenses
flutter doctor
禁用睡眠
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
启用睡眠
systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
盖板动作