Implement the Euclidean algorithm into a Python function in order to calculate the largest common divisor of two numbers.
Count Words In String
The simplest way to count words in a string using Ruby and regular expressions by splitting the string at each space.
Getting a list of all the files in a directory
With very little C# code you are able to loop through all the files at a given path.
Convert a number from digits to words
A JavaScript function for converting numbers (21) to words (twenty-one). It works for numbers up to 999, but it can be transformed to support numbers in the thousands too.
Read file to output stream and return its state
This code will read a file and display its content to the output stream (console), while being on the lookout for errors.
Quicksort algorithm and character count
This C++ console application accepts a string as input and after storing them in a character array, sorts them alphabetically using the quicksort algorithm. It also counts the number of character occurences in the string.
Basic Chatroom Skeleton Application
This Java code is not addressing the core of a chat application (sending and receiving messages) however it makes a good GUI skeleton for starting such an application.
Shorten a string with complete words
The Excerpt() function takes in a string and shortens it to the desired amount of characters, but without cutting into the middle of a word.
String Ends With Values in Array of Strings
This simple method checks if a string ends with either of the values in an array of characters, and returns true if it does. Useful to add appropriate suffixes to words in standard form.
Check URL validity using JavaScript
The CheckValidUrl() function takes in an URL and checks whether or not it is valid by verifying it against a regular expression. Works for HTTP, HTTPS and FTP URLs.