Primitive Data Snippets


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.

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

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.

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

28 October, 2014   

Quick and simple example to parses RSS into an array

29 December, 2012   

Example MySql code to append Data to Field in MySql

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.

11 December, 2014   

C++ code snippet of simple stack using linked lists, can be used for database management system.