Snippets of the day – Wednesday, March 19, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! C#: How to sanitize a string from unwanted characters This method defines a set of admitted characters (see ‘admtted’ string) and substitute the characters not belonging to admitted string with the ne provided in ‘subchar’ paraemter, or skip it if skip=true Open the snippet Author:    […]

Snippets of the day – Monday, February 24, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Typescript: passing a class member function as parameter to another function Typescript introduces the class construct and the concept of member functions. However if you try to pass a instance member function as parameter to another function the binding with the instance is lost. To solve […]

Snippets of the day – Tuesday, February 18, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! Email Utilities in Java SWT environment This class provides some utilities for the management of email dispatch on client side for SWT environment, like opening an email client. Open the snippet Author:    cghersi Java Program to simultaneously execute 2 threds Open the snippet Author:    […]

Snippets of the day – Sunday, February 09, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! C#: Prepare a string of comma-separated values from a collection. This method prepares a comma-separated (or any other character specified as ‘separator’ input) from the given list. It can also remove zero or negative inputs if explicitly required by setting removeZerosOrNegatives=true Open the snippet Author:    […]

Snippets of the day – Friday, February 3, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! How to encrypt and decrypt strings in C# This class can be used to encrypt and decrypt the given string. In the current implementation the passwrod is directly saved inside the code; depending on the infrastructure and architecture of the code sometimes it can be passed […]

Snippets of the day – Thursday, January 30, 2014

Posted on Leave a commentPosted in Snippets

Here are some of the most recently published snippets! linux bash while statement script This is a very simple example of while statement in linux bin bash console. The while condition terminates after N iterations, printing a counter for each loop. Open the snippet Author:    lbottaro Transpose Query Output in SQL Server This script […]