Generate Matrix Snippets


* Code to generate spiral matrix for n elements where n >= 1 * To generate spiral matrix for n elements just * Change the value of MAX to whatever u want :)

C+ source code for Generate a spiral matrix for n elements

16 October, 2012   

MySQL code to generate random string

11 May, 2013   

Generate CAPTCHA images for form validation without any outside library's or plug-ins

22 May, 2013   

Example code shows how to draw a Linear Gradient

14 May, 2012   

How to generate SYNONYMS SQL

Procedural Programming technique shows creation of Pascal's Triangl

04 December, 2011   

Example of If Statement in python

To generate numbers of the form 2^i * 3^j * 5^k

This basic snippet will create a random authentication code, or just a random string.

Define allowed characters in $s and length for the string in $l

18 September, 2013   

If you don’t need human readable string, then use this function instead, which will create a random string you can use for user id’s etc.

09 February, 2013   

Very simple small code to generate random password

05 December, 2012   

The function accept 3 parameters: the data, the csv delimeter (default is a comma) and the csv enclosure (default is a double quote).

Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose the desired length and strength for the password and it is very flexible.

28 June, 2012   

Function to generate soundex code for any string (usually a name). Conforms to Knuth's algorithm and the common Perl implementation.

11 January, 2012   

You can create like following code by Visual MAXScript Editor

The mysql_fetch_assoc "converts" a row from a table into an associative array. The mysql_insert_array "converts" an associative array into a row in a table.

30 August, 2011   

This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.

15 December, 2012   

Allows you monitor how many times a link/image/banner is clicked.