The Code for Smart Communities