How many grams is a cup

Many recipes use cups instead of grams to indicate quantities. This often causes confusion, because how big should the cup be that is used for measuring? After all, a cup measures volume, not weight; a cup of water does not have the same number of grams as a cup of rice.
The weight varies depending on the density of the material.
Here is a list of the most common ingredients with conversion from cup to gram.