The Snippet Library function of FusionForge is very interesting; it allows to collect all the type of information/knowledge which is not a complete piece of code and which is usually difficult to organize/share.
A typical example are sophisticated shell commands, javascript functions, perl one-liner, SQL expressions that perform special queries, an algorithm, etc.
You can insert a new Snippet by clicking on the
link.A form appears, where the following information can be inserted:
Insert the title of the snippet. This will be displayed in the list of the snippets.
Insert the description of the snippet.
Select the type of the snippet: function, full script, Howto, class, Readme.
Select the license you want to use for your snippet.
Select the language of the snippet (if it is language dependent).
Classify your snippet in categories tree.
You should insert here the version of the snippet. For a new snippet, insert 1.0.
Paste here the code of the snippet.
You can browse snippets by clicking the
link.You can browse snippets by Language or by Category. The resulting table shows the list of all snippets of the Language/Category. You can click on the snippet number to view the detail of the snippet.
You cannot modify an existing snippet, but you can add a new version of the snippet by clicking on the Submit a new version link on the bottom part of the detail page of the snippet.
Adding a new version does not delete the old version, all previous versions will be available.