ex-Waze, ex-Unstoppable Domains
Available for hire
Playing PS5 and PC games in my free time
https://github.com/domhhv
- Private Constructor: Prevents direct instantiation of the class.
- Static Method `getInstance()`: Provides a global point of access to the instance.
- Single Instance: Ensures only one instance is created and reused.
- Private Constructor: Prevents direct instantiation of the class.
- Static Method `getInstance()`: Provides a global point of access to the instance.
- Single Instance: Ensures only one instance is created and reused.
I also had to learn how -- noqa works to ignore specific lines. E.g. -- noqa: CV10 next to a line disables rule on quoted literals for it.
Still worth it. Would do again.
Hope this helped!
I also had to learn how -- noqa works to ignore specific lines. E.g. -- noqa: CV10 next to a line disables rule on quoted literals for it.
Still worth it. Would do again.
Hope this helped!
This runs SQLFluff via `pip` in GitHub Actions.
Here's the GitHub workflow config. Takes 20 lines and saves headaches in prod.
This runs SQLFluff via `pip` in GitHub Actions.
Here's the GitHub workflow config. Takes 20 lines and saves headaches in prod.
Here's my lint-staged.config.js.
There's also a fix to transform the absolute paths to relative ones since when we run the command inside the Docker container, the paths are relative to the mounted volume, not our local file system.
Here's my lint-staged.config.js.
There's also a fix to transform the absolute paths to relative ones since when we run the command inside the Docker container, the paths are relative to the mounted volume, not our local file system.
- lint:sql (to lint files)
- fix:sql (to auto-format them)
So I don’t have to install Python or pip—just Docker.
Those commands automatically detect .sql files but can also take a path to a specific one as an argument.
- lint:sql (to lint files)
- fix:sql (to auto-format them)
So I don’t have to install Python or pip—just Docker.
Those commands automatically detect .sql files but can also take a path to a specific one as an argument.
You can run it via Docker (they provide an official image) or install it globally via pip/brew.
It reads from .sqlfluff config file in the root of your app.
Here’s what mine looks like.
You can run it via Docker (they provide an official image) or install it globally via pip/brew.
It reads from .sqlfluff config file in the root of your app.
Here’s what mine looks like.
www.codecademy.com/profiles/dom...
www.codecademy.com/users/domhhv...
www.codecademy.com/profiles/dom...
www.codecademy.com/users/domhhv...
- Returnal
- TLOU2R
- Cyberpunk 2077
- Hogwarts Legacy
My gaming setups are not static, as I play PS5 in my living room and PC in my office, where I also have my work desk with monitors set up–it serves two purposes: gaming and coding, heh
- Returnal
- TLOU2R
- Cyberpunk 2077
- Hogwarts Legacy
My gaming setups are not static, as I play PS5 in my living room and PC in my office, where I also have my work desk with monitors set up–it serves two purposes: gaming and coding, heh
- Switches to `main` by default (or any branch you prefer).
- Pulls the latest changes with rebase.
- Deletes the old branch.
- Optionally stashes and pops local changes if needed (just add --stash).
Hopefully, it helps your productivity as well if you've faced the same problem!
- Switches to `main` by default (or any branch you prefer).
- Pulls the latest changes with rebase.
- Deletes the old branch.
- Optionally stashes and pops local changes if needed (just add --stash).
Hopefully, it helps your productivity as well if you've faced the same problem!