FZFullchee Zhanginfullchee.hashnode.dev·Aug 28, 2025 · 1 min readnonlocal in Python 3#TIL about nonlocal in Python 3 Inner functions can access outer variables but can’t modify them by default Here’s a contrived simple example def outer(): num = 0 def inner(): nonlocal num num += 1 inner() If you remove t...00
FZFullchee Zhanginfullchee.hashnode.dev·Mar 20, 2025 · 1 min readMapping French Canadian Mac keyboard to behave like US keyboardSee https://gist.github.com/Fullchee/7ca8f6ca9fe254a301a91ab93ab74dbc00
FZFullchee Zhanginfullchee.hashnode.dev·Mar 19, 2025 · 1 min readMac weather menu bar item showing wrong citiesProblem When I turned off my location on my mac, the weather menu bar icon would start showing Ottawa and list Toronto and Montreal even though my Weather App only had Toronto. Solution I had to add Ottawa and then remove Ottawa again and it fixed i...00
FZFullchee Zhanginfullchee.hashnode.dev·Feb 26, 2025 · 1 min readVSCode: Cmd clicking in `Open Recent` opens in a new window!CMD/CTRL + clicking in Open Recent opens in a new window (without closing your existing window!)00
FZFullchee Zhanginfullchee.hashnode.dev·Oct 16, 2024 · 1 min readTesting library (React): Selecting text in multiple HTML elements<h3 data-testid="hello-header">Hello <strong>World</strong></h3> *ByRole screen.getByRole('heading', { name: 'Hello World' }); or.toHaveTextContent expect(screen.getByTestId('hello-header')).toHaveTextContent('Hello World');00