Snip2Code is shutting down.
It has been quite a ride, since 2013 when we launched our first prototype: thanks to the effort of you guys we collected more than 3 million snippets!
We are very proud to help all our users to be more efficient in their jobs, and to be the central point to share programming knowledge for everyone.
Our basic service is free, so we always survived on our own resources to give you Snip2Code.
Unfortunately, we are no more in the financial position to sustain this effort, and therefore we are announcing here our permanent shut down,
which will take place on August 1st, 2020.
Please save your private snippets using our backup function in the settings, here.
IF YOU WANT TO SAVE SNIP2CODE, PLEASE CONSIDER DOING A DONATION!
This will allow us to pay for the servers and the infrastructure. If you want to donate, Contact Us!
by
7,518 31

First Snippet: How to play with Snip2Code

This is the first example of a snippet: 
- the title represents in few words which is the exact issue the snippet resolves; it can be something like the name of a method;
- the description (this field) is an optional field where you can add interesting information regarding the snippet; something like the comment on the head of a method;
- the code (the field below) is the actual content of the snippet: the stuff you want to copy-and-paste wherever you need; something like the body of a method.
Then, you want to specify the visibility of the snippet, i.e. who can see it: the access to your precious pearl of wisdom may be restricted just to yourself, or to the entire world. Moreover, if you belong to some groups (you can even create your own groups!), the snippet may be shared just with the belongers of such group, i.e. your colleagues, team-mates, or just friends!
Optionally, you may want to add some tags, simple words that identify the snippet for its fast retrieval in a future search, and eventually properties, key-value pairs that store the most important features of the snippet, like the Language in which it is written, the OS/Architecture where the code can run, the language version required to support the snippet, etc. Some of them are automatically guessed by our powerful semantic engine, but obviously your knowledge cannot be completely replaced!
As an example, this snippet has the property ".NETFramework=1.0", which allows you to retrieve it with the search: "singleton C# .NETFramework<=2.0"
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/2491733/First-Snippet--How-to-play-with-Snip2Cod?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/* place here the actual content of your snippet. It should be code or pseudo-code. The less dependencies from external stuff, the better! */
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus