Store Data Snippets


30 January, 2013   

JQueryUI Search Auto complete Jump Menu with data from remote URL

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

12 January, 2012   

Example for Dumping a database to HTML tables

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

20 November, 2012   

If you want to store your stylesheet somewhere on your site as a separate file, you can link to it on whatever pages you want to apply it to. Just use this line of code, which goes into the <head> of your HTML document:

This MATLAB code snippet reads in a file stored in the current directory and stores specified lines from the file in a new cell array for manipulation in MATLAB.

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

18 September, 2012   

Get the current title of the page using javascript and store it into a variable

10 November, 2014   

Easy way to parses RSS into an array