67 karma · joined Apr 9, 2018 (8y ago) · 45 submissions
comment 11mo ago · link · parent
comment 1y ago · link · parent
Here's his technique: pick a letter of the alphabet, and find as much words that start with this letter as you can. Once you can't find words anymore, pick the next letter. Doesn't work for me, my brain won't ever stop.
I noticed I have to visualize stuff in my head to fall asleep so my adaptation is to pick a single letter and a single word, and visualize it in my head, using it, manipulating it, experiencing it, whatever. For example: letter P, word Pineapple, imagine you're holding a pineapple, you feel the roughness of it's skin in your hands, you throw it in the air and catch it again, you take a knife and slice it on a wooden table on the beach, etc.. The dream kicks in seconds. Without external interruptions, after a few minutes I'm asleep (instead of rummaging for hours).
If you notice you're stuck in a loop/pattern (for me anything about text, like reading or writing, and voice, like listening and speaking, or stressful scenarios), just pick a new letter, pick a new word, visualize it.
comment 1y ago · link · parent
comment 1y ago · link · parent
6.
Show HN: Griffe, load Python APIs, find breaking changes(mkdocstrings.github.io ↗)
3 points · by Pawamoy · 2y ago · discuss
comment 2y ago · link · parent
Great work, git-cliff devs!
8.
Show HN: Python) Markdown Exec, execute code blocks and render their output(pawamoy.github.io ↗)
2 points · by Pawamoy · 2y ago · discuss
comment 4y ago · link · parent
But they do! So you can!
The inventory is right here: https://textual.textualize.io/objects.inv. It's generated by mkdocstrings, the "autodoc" plugin for MkDocs. It's Sphinx compatible.
comment 4y ago · link · parent
comment 6y ago · link · parent
I think Terminator gave me a real boost on productivity. The split feature is great. And it has a lot more good things, like increase/decrease/reset text size, resize/rotate/expand or even drag-and-drop splits, grouping (to write in multiple splits at once), and the scrolling is done very well: scroll up a bit to stop following the output, scroll to bottom to follow again.
comment 6y ago · link · parent
In addition to this, you can make sure no appended code is ever executed by explicitly running "exit" at the end of your block. I actually used this trick in a self git-updating script (the updated version could contain more lines at the end).
comment 6y ago · link · parent
comment 7y ago · link · parent
20.
Ask HN: How do you find developers with same interests, for side projects?
2 points · by Pawamoy · 7y ago · 2 comments
comment 7y ago · link · parent
comment 7y ago · link · parent
I guess my brain just refuses to remember these for some reason.
comment 7y ago · link · parent
Then you have Xonsh, but in my opinion, switching between the two contexts, shell and python, at each part of a command was too difficult. I was totally lost even at writing very basic commands.
comment 7y ago · link · parent
LINENO will use the last line number of a multi-line "$(...)" command, offsetting all the commands' line numbers within the substitution. Since multi-line strings are concatenated by Bash internally, LINENO will only increase by one for those.
You end up with line numbers greater than the number of lines in your file, or overlapping with empty lines or comments. In this matter, Zsh's LINENO is way better as it will have the expected value (it will always be the line where the command was started, not an offset).
comment 7y ago · link · parent
It's also used by the `z` command line tool to maintain its directory "frecency" list.