Programmable Ultrafast Photonics Lab