A simple way to flip (X, or Y, or both) is to add OneMinus right after the TextureCoordinate node.
Re-using my previous example, I added a conditional X flip which you can control via scalar parameter (0 or 1) :