Deformation Driven Programmable Metamaterials and Soft Machines