The National Building Code and derivatives (National Electrical, Energy, and Fire codes as well as Alberta versions of the codes) are available as a free download for personal use. The NRC has made it very easy, with a direct download option from their archive:
As well, the NRC is now offering free electronic access to the related user’s guides, including: