Magento code snippets Part I: Product model

Load AttributeSet by name:

Load product by SKU:

Iterate through custom options:

Iterate through bundle options: