緣由 (是個古老的坑):
- VSCode 的等寬字,在中英文會有排版不對齊的問題。這在寫 markdown Table 時,會有嚴重跑版的問題。
- 問題是來自於 VSCode 是用 Electron 開發,也就是介面顯示是由 Chromium 渲染導致 (Chromium 對中文等寬字渲染不對齊的 bug)。
- 目前沒看到有人修正這個根本性問題;目前的 workaround,就是改用能夠使中英文保持
2:1
等寬的字型。
來找個可用字型 (繼續排坑):
[tool.poetry] | |
name = "py_sec_edgar" | |
version = "0.1.0" | |
description = "" | |
authors = ["Xaree Lee <[email protected]>"] | |
readme = "README.md" | |
packages = [{include = "py_sec_edgar"}] | |
[tool.poetry.dependencies] | |
python = "^3.10" |
[tool.poetry] | |
name = "panel" | |
version = "0.1.0" | |
description = "" | |
authors = [] | |
readme = "README.md" | |
[tool.poetry.dependencies] | |
python = "^3.11" |
[tool.poetry] | |
name = "pythonpro" | |
version = "0.1.0" | |
description = "" | |
authors = ["Hello <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.10" | |
[tool.poetry.dev-dependencies] |
For the principle "Don't call us, we'll call you", the modern function design uses callbacks, Promise, or monad/stream-based techniques (e.g. Rx) to let you subscribe the async results.
The following is a usual JS function implementation using the callback for async:
function register(username, password, email, callback) {
// processing async work
Sublime 是個簡單,強大,跨平台的編輯器。這邊介紹開發 ReactNative 時的設置。
參考並 fork saetia's gist 的工作安裝教學,更多內容可以參考 Awesome OSX
most of these require logout/restart to take effect
# Enable character repeat on keydown
// Release under MIT | |
// Copyright (C) 2015 Xaree Lee | |
#import <Foundation/Foundation.h> | |
/* Get property name for the class (C string or NSSting). */ | |
#define keypathForClass(Klass, PropertyName) \ | |
(((void)(NO && ((void)[Klass _nullObjectForCheckingPropertyName].PropertyName, NO)), # PropertyName)) | |
#define keypathStringForClass(Klass, PropertyName) \ | |
@keypathForClass(Klass, PropertyName) |
// Just copy the fllowing code into a .m file, and include the XAspect to you project. | |
// Then you'll see console log messages when objects of specific classes were deallocated. | |
// The block `AspectPatch(-, void, dealloc)` will be invoked just before `-dealloc` aka 'before advise'. | |
// Using XAspect | |
#import <XAspect/XAspect.h> | |
// Headers for classes you want to track | |
#import <CMDPUserLogin/UAMLoginViewController.h> | |
#import <CMDPUserLogin/UAMLoginTableViewController.h> |