Merge Strings Snippets


19 April, 2015   

Merges two strings in a way that a pattern like ABABAB will be the result.

Example code for merge sort of an integer list

Very useful Java code snippets for Java developers - Converting Strings to int and int to String

13 March, 2014   

Delphi code example for [UNIT] ROT1 Encrypt Strings

13 September, 2015   

C code snippet for another merge sort of integer list

16 April, 2011   

There are times when you need to split a large file into several smaller ones (for whatever the purpose is). The following two methods use Delphi TStream objects to break a file into several files with predefined size; and to merge those files back to the original.

07 August, 2014   

All hints except /*+ rule */ cause the CBO to be used. Therefore, it is good practise to analyze the underlying tables if hints are used (or the query is fully hinted.

Loop through a fixed list of values or strings

C code snippet for merging sort algorithm to sort

29 March, 2014   

How to convert strings to lowercase characters, and then clean them up for use in scripts, etc.

16 March, 2011   

This checks to see if two strings match each other.

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

I was trying to pass an array through SWFObject flashvars and realized it can't be done. Instead you need to use a string for your array, pass it into Flash , then convert it to an array using the actionscript "split" function.

31 May, 2015   

Enhanced for loop is useful when scanning the array instead of using for loop.

C code example for useful macros, functions and tricks

15 May, 2012   

VB.NET Code example for querystring validation

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

01 March, 2011   

Function that generates random passwords.

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

JavaScript code to get time intervals between two Dates