Popular source snippets

» PROGRAM SLEEP TIMER
Category: C++
Visits: 786
Function causes a timed pause based on the passed parameter in milliseconds. Instructions: pass the amount of milliseconds you want the program to sleep for; function will return when that amount is reached...
» HIGHLIGHT KEYWORDS IN TEXT USING REGULAR EXPRESSION
Category: C#
Visits: 774
Highlighting keywords in text using regular expression in C#. More explained in comments.
» SORTING A LINKED LIST
Category: C
Visits: 768
The code contains a snippet to create and sort the linked list in C.
» TEXT ENCRYPTION/DECRYPTION WITH XOR
Category: Python
Visits: 767
Crypting with xor allows one to write one function that can encrypt and decrypt a file. In this example a text file is used, but it could be an image file as well. Once you have created the encrypted file...
» CAPITALIZE PROPER NAMES
Category: Python
Visits: 750
A function and a String-based class for properly capitalizing a proper name. I hope this isn't too big to be considered a "snippet". To see it in action, save the snippet to a .py file and run...
» A SIMPLE BUBBLE SORT
Category: C#
Visits: 743
This code shows how to use a minimum Windows GUI program to display the results of a bubble sort of an integer array.
» CONVERT A LONG TO HEX
Category: Java
Visits: 741
Handy to convert MD5 or SHA-1 hash values.
» CONVERT MYSQL DATETIME TO JS DATE() OBJECT
Category: Javascript
Visits: 714
This little function parses mysql datetime and returns Date() object
» BACKUP DIRECTORY AND GZIP AND ROTATE BACKUPS
Category: Bash
Visits: 696
Backup directory and gzip and rotate backups to keep 7 days. Wrote this today because i was bored and someone asked for something similar on opensuse.us. You can change the tail +8 to something else if you...
» BENCHMARK
Category: Javascript
Visits: 676
In computing, a benchmark is the result of running a computer program or a function, or a set of functions, in order to assess the relative performance of an object, by running a number of standard tests and...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15