Smoking a very small dose of weed has the same effect on me. However it's difficult to get the dosage right (if it's too much I'm basically unable to do anything) and it's not really working for difficult programming. However for organizing stuff, writing down something already clear or for tasks in the flat or just plain cleaning or mundane tasks it keeps me focused.