fullchee.hashnode.devnonlocal 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...Aug 28, 2025·1 min read
fullchee.hashnode.devMapping French Canadian Mac keyboard to behave like US keyboardSee https://gist.github.com/Fullchee/7ca8f6ca9fe254a301a91ab93ab74dbcMar 20, 2025·1 min read
fullchee.hashnode.devMac 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...Mar 19, 2025·1 min read
fullchee.hashnode.devVSCode: 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!)Feb 26, 2025·1 min read
fullchee.hashnode.devTesting 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');Oct 16, 2024·1 min read