Popular source snippets
-
» SIMPLE CAPTCHA IMAGE GENERATOR
Category: PHP
Visits: 1367
- Use this function to generate and protect your contact or just all forms where some extra validation is needed. Its a very simple captcha image generation function. You can quickly implement your...
-
» RSA ENCRYPTION
Category: C#
Visits: 1335
- Takes a string and encrypts/Decrypts it using RSA. Modify a String to whatever you want...
-
» BR2NL
Category: PHP
Visits: 1324
- The oposite of the NL2BR() function in PHP. Makes NL linefeed fra <br> and <br /> tags.
-
» COUNTRY DROPDOWN LIST CONTROL
Category: C#
Visits: 1253
- the registry contains a list of countries for telephony so you can access that and build your list that way as long as your web server OS is up to date you get the latest country list
-
» RESIZE A MULTIDIMENSIONAL ARRAY
Category: C#
Visits: 1249
- This is a method for resizing a multi dimensional array. In VB.Net you have ReDim, in C# you can use Array.Resize, but theres nothing to resize a multi-dimensional array in C#
-
» VALIDATE IP ADDRESS WITH REGULAR EXPRESSION
Category: C#
Visits: 1223
- This is a snippet I use to validate IP address using regular expressions. I use this when working in .Net 1.1 as the TryParse method isnt available until 2.0
-
» GRADIENT BUTTON
Category: C#
Visits: 1210
- Gradient button for .NET Compact Framework.
-
» INTERPROCESS SYNCHRONIZATION (SAFE THREADING)
Category: C#
Visits: 1193
- Here's three easiest ways for safe threading.
-
» HASH CODE GENERATOR
Category: Java
Visits: 1188
- Simple hash code generator which allows hash codes for primitives and Java objects to be combined for a single object hash code with:
new HashCode().hash(value1)
.hash(value2)
.hash(value3)
...
-
» QUICK SORT RECURSIVE C PROGRAM
Category: C
Visits: 1158
- Quick sort is a faster way to sort a given array by recursion. The algorithm goes like this:
it first takes some index element and seperates all elements lesser than this with larger numbers then places...