Data Reading Snippets


15 November, 2011   

Showing how to read data (an integer) from user.

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

06 August, 2011   

The stuff inside the /* */ marks are CSS comments. This allows you to enter notes into CSS that will not be interpreted. In this case, this comment lets someone reading the CSS file know that that particular line of CSS was intended to allow for using ems to set font size later in the CSS in a more intuitive base 10 way.

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.

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

13 April, 2011   

Reading a file to a string couldn't be easier than using the file_get_contents() function. Simple pass the name of the file (with path) and optional parameters

03 October, 2013   

Basic commands for reading a text file one line at a time.

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