Programmable Assembly and Deformation of Soft Matter