I've been using XCode for a while and I'm starting to have a little collection of snippets. In XCode, they are assigned a completion shortcut and are integrated in the regular code completion, but that's probably the same in other IDE.
Cocoa example: NSC expands to
[[NSColor <#color#>Color] CGColor]
Now I can't code without them. Is Stack Overflow the right place to share them and ask for other to share their own?