Data Card Snippets


15 November, 2012   

This program has two input checks: one for a blank card to indicate end-of-data, and the other for a zero value within the input data. Either condition causes a message to be printed.

15 November, 2012   

If one of the input values is zero, then the program will end with an error code of "1" in the job control card listing following the execution of the program. Normal output will be one line printed with A, B, C, and AREA. No specific units are stated.

C++ source code for a portable card deck class with shuffling

05 December, 2012   

Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves a network request for each image, and prevent exposure of directory paths. Please note that IE7 and below are not compatibles with data URIs.

Two simple functions to read an write tab seperated files (like CSV files, etc).

Source code for Binary tree creation, traversal and search

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.

03 June, 2013   

Plots a histogram from an external file with the frequency of each bin shown above each bar. The XTick is also the intervals of the histogram.

18 May, 2011   

To randomize an array we loop over the length of the array, removing an object chosen at random and then adding it back onto the Array’s end position. Think of this as having a deck of cards where you pick a card at random from the deck and move it to the top of the stack repeated for the total number of cards in the deck. It’s important to...

05 April, 2015   

A simple PHP script that outputs data into formatted columns.

31 October, 2011   

Declarations: Option Explicit On Imports System.Data.OleDb

Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data.

08 January, 2014   

Simple Python IRC bot by Berend.

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).

13 July, 2011   

This example uses count to count the number of times 0 appears among v1-v3 (putting it in z1) and likewise for v4-v6 (putting the count in z2). Then, if z1 is 3, then 9999 is placed in v1-v3 using a do repeat loop. The same is done for v4-v6.

Example code for a short BubbleSort algoritm for Integer Arrays

30 August, 2011   

Calculates the total size of a MySQL database in KB/MB or GB...

30 January, 2013   

JQueryUI Search Auto complete Jump Menu with data from remote URL

10 November, 2014   

Easy way to parses RSS into an array