This article is from the alt-sources-mac FAQ, by Mark Pilgrim (email@example.com) with numerous contributions by others.
Any small amount of source code (less than a few pages) can be posted as
If you post a single function to comp.sys.mac.programmer and feel it would
serve the general community to have it on alt.sources.mac (and therefore
archived on ftp sites around the world as well), cross-post it with a
descriptive subject line. Please remember to include a "Followup-To:" line
to the original newsgroup or your own e-mail address.
If the source code, however small, relies on resources in a resource file,
or if it is in two or more separate files, use the format for larger posts
(see <3.3> below).