1. General: The Building Codes and Standards page at the website of the National Roofing Contractors Association is a good place for up-to-date information about building codes and how they affect roofing.
2. General: An excellent one-page explanation of the roofing section of the 2012 International Building Code. From the November 2012 issue of Professional Roofing magazine and archived at the website of the National Roofing Contractors Association.
3. General: Online Code Environment and Advocacy Network (OCEAN) is an extensive resource provided by the Building Codes Assistance Project (BCAP). Here you can find information regarding code status, guides to building codes, state code information, and more. The focus is on United States jurisdictions, but some useful international information is available.
4. General: To view building codes, plumbing codes, fire codes, etc., (check the website of your local building inspector's office to find out which code is currently in effect in your area) see the International Code Council Online Library. See here for a look at the roofing section of the 2012 International Building Code. See here for a look at the roofing section of the 2012 International Residential Code.