That reminds me of the time I was taking pot while in college. During one class I was completely zoned into the cursor and moved it back and forth 5-6 pixels across the screen.
My experience though it is anecdotal seems to rule out at least cannabinoids.
Dosage is an important consideration, though. I know someone who used to use pot as a programming aid, but he had to be very careful with the dosage. By using very small amounts spread out over the day, he could maintain a flow state that let him churn out code for hours and hours. He didn't find it all that helpful for design and planning, but for large projects that involved an overwhelming amount of fairly boring work, he found it to be a helpful tool.
The problem was that if he used too much, he'd be pretty much useless until it wore off some. Smoking a plant is not exactly what you would call "precise dosage administration", so this was a fairly significant issue.
My experience though it is anecdotal seems to rule out at least cannabinoids.