Short Urls Snippets

You can use a url shortener with Twitter such as tinyurl.com

Example htaccess snippets to remove File Extention from URLs

This function takes in two strings (value,key) and uses XOR encryption to encrypt (and decrypt) the value using the key. it returns the encrypted value as a C++ string. by John Shao

Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink

This simple program shows the size and ability of primitive data types to handle minimum and maximum values, to take care about it, while you write a program.

This simple program shows the size and ability of primitive data types to handle minimum and maximum values, to take care about it, while you write a program.

The following are some useful functions to build URLs within a CGI script, for example to send a HTTP redirection header

This function is used to reverse an integer array. For example, if the array is {1,2,3,4,5}, these functions will return an array like {5,4,3,2,1}. The user needs to pass in a pointer to the array and the size of the array, and the function will return a pointer to an array in the reverse order.

08 June, 2011   

Did you know that search engine crawlers think that 'www.yoursite.com' and 'yoursite.com' are two different websites!? We need to help the crawlers out and tell them that the two URLs are the same. We can do this with a 301 (moved permanently) redirect. The code below will redirect requests for 'yoursite.com' to 'www.yoursite.com .

Example code for a short BubbleSort algoritm for Integer Arrays

04 October, 2012   

Turn a string into a readable url

A short and simple code snippet using voice output with Delphi

24 November, 2012   

Color header for Windows that integrates with count source code

Sending short text messages with socket datagrams is simple to implement and provides a very lightweight message passing idiom.

This is a short way of positioning display objects in a grid layout. It makes use of the modulo operator (%) to position each display object along the x axis and the floor method of the Math class for the y position. This example creates 20 instances of a custom display object called MyDisplayObject positioning each instance in a grid 5 columns...

11 September, 2011   

Simple example template of an Import XML

22 September, 2016   

A short javascript function to toggle checkboxes

Simple singly linked lists example usage; it is only one of many possible implementations