This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| # Example makefile with some dummy rules | |
| .PHONY: all | |
| ## Make ALL the things; this includes: building the target, testing it, and | |
| ## deploying to server. | |
| all: test deploy | |
| .PHONY: build | |
| # No documentation; target will be omitted from help display | |
| build: |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Qute-Harpoon is an implementation of ThePrimeagen's harpoon's ideas inside qutebrowser to enhance tabs navigation experience.
c.tabs.show = "never"
# Put new tabs at the end
c.tabs.new_position.related = "last"When working with API clients there are several distinct areas of concern. Each of these happen in sequence and are used with the goal of receiving a Domain Model at the end.
The argument list is so powerful that I wonder why we as vimmers are underusing it. Below are some useful use cases that I have found for the (neo)vim argument list
This bookmarking journey began with harpoon, a plugin built by a prolific YouTube content creator named Theprimeagen. The main idea is to store commonly used files needed to achieve the task at hand into a buffer for fast access. For more information, check Why harpoon?.
After that, I came across grapple. Grapple shares the same underlying concept as harpoon but is a step ahead. It provides a neat feature on top: Scope. I really like the git_branch one
| #!/usr/bin/env bash | |
| function list_queue() { | |
| # Function to list queue songs formatted as "[pos] artist - title" | |
| mpc -f "\[%position%\] %artist% - %title%" playlist | |
| } | |
| function list_library() { | |
| # mpc rescan | |
| mpc update &> /dev/null && mpc -f "%file%" listall |
A dirty AI generated script to replace all occurrences of logger.method(f"")
with logger.method("%s") using ast-grep. The
same thing can perhaps be achieved with ast-grep rules only, but I don't know
well yet.
#!/usr/bin/env python3
"""
F-string to Percent-format Logger ConverterAt work we were using f-string in python logging methods. A typical log will look like
## Bad ❌
logger = logging.getLogger(__name__)
logger.info(f"Do you not log me like this little jerk {value}")In collaborative environment, while working with co-workers, we usually have to share information about the code to point out a specific place in the codebase.
Most of the time I share screenshot of my code using nvim-silicon but sometimes, a screenshot is not sufficient for your co-workers to fully understand the message you are trying to convey, in those cases, you will either have to provide the name of the file and the position to look at or send a full path that point directly to the correct place. I think the second option is the best for better communication of intents.