Programming -
Stick to a specific set of tools YOU are comfortable with. Don't go with the newest fad. What matters are your skills and concepts. Not what tool you use. A skilled craftsman can use very basic tools to build impeccable creations while a naive one with the latest fancy tools can create junk. So don't jump editors, just learn the one you are comfortable with and do is in much depth.
Math -
Don't look for the golden trick. Just solve more and more problems and you will eventually get good at recognizing patterns.