Found that out the hard way too, but I felt compelled to sign up just to say this:
After comparing the code to that of Pokemon Platinum's, I modified one thing: I changed the 5B to 63
Now, the new code looks like this:
94000130 FFBB0000
62111880 00000000
B2111880 00000000
D5000000 005A0148
C0000000 00000063
D6000000 000009B0
D4000000 00000001
D2000000 00000000
Activate it the same way: select + up. Now it'll give you all TMs and HMs. It worked with my Soul Silver, but I'm not sure about Heart Gold...