>>39563512hair gel should not fuck up the cartridge, you'll just have to scrape it off from the golden contacts and it should be good to go. maybe throw a little bit of isopropyl alcohol to give it a good clean.
and for your 3ds, try getting some contact cleaner and some compressed air into the slot.