There are some things you can do to set yourself up for success and to maximize your knowledge on how to be productive in a given situation.
If you have to work with people you hate (or love), it is imperative that you handle the situation correctly, because, if not, these work relationships can suffer.