There's no "cheat code" for trigonometry—but you don't need one. Here are the standard, legitimate ways to find tan(θ):
Understanding why tan = opposite/adjacent (or sin/cos) is far more valuable than any shortcut—it lets you solve any triangle problem.