Mix cornmeal, baking powder and salt in a medium bowl. Add egg and milk (or buttermilk); stir until just combined. Remove the pan from the oven and swirl the oil to coat the bottom and a little way up the sides. Very carefully pour the excess hot oil into the cornmeal mixture; stir until just combined. Pour the batter into the hot pan.