Write down the result
Start with the question you were trying to answer. Record what you tried, the result, and the next step. A note that takes a minute to write can save an afternoon the next time you revisit the same problem.
Keep examples small
Include one example that someone else can reproduce. Add the date and any version numbers that matter so the example remains useful as the tools change.