What is the best way to get from Macau Peninsula to Taipa and vice versa? Also, is it possible to do that late (say around 1am)?
I'd recommend you to just take a taxi. It's a pain to deal with buses in Macao.
Alternatively, if your destination is close to Cotai, maybe consider taking a casino shuttle.