Besides being beneficial to people, it is also useful for future me to add here my problem I encountered and its solution (not existing in GIS SE) as a question and answer. I frequently find myself here to get a solution for a problem I solved before, because it is easier to find the answer here than on my computer.
You also know that it is explicitly encouraged in SE to ask and answer your own questions. On the other hand, it is required to provide the shortest code attempts when seeking help to write code. But I don't remember how the code looked like before I had solved.
In this case, should it be included the minimal code in the question body, or could the absence of the code be a reason to close the question?