Calculate Distance Snippets

How to calculate distance between Mouse and Element

24 July, 2014   

Calculate distance between two zip codes or postal codes.

Calculate the more near point belonging to a given segment.

19 October, 2013   

Mysql code shows how to calculate last 7 days

MySQL code example to calculate age from Date Of Birth

Calculate the more near point belonging to a given segment.

This is a PHP Class that calculates the size, number of files & folders of a specific directory.

Scripts used to calculate Daylight Saving Time (DST) for the US and EU. Valid for years 1900 to 2099. [DST wasn't adopted until the 1950s-1960s for US and 1990s for the EU] By: brad degrandis

PHP code to calculate the difference between two dates

23 August, 2014   

Correctly calculate the date of Easter Sunday.

11 November, 2013   

These are two JavaScript functions that should of course be properly called on "onkeyup" event in the appropriate fields.

13 June, 2011   

This C# code snippet calculates a Fibonacci number using recursion, i.e., the Fibonacci method calls itself when necessary.

30 August, 2011   

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

Have you ever wanted to know how much memory one of your PHP scripts uses when it runs? You might want this information if your script has a memory leak or takes a long time to execute. If that's the case then there's a great built-in function called memory_get_usage, which will display the exact amount of memory being used by your script. This...

Need to adjust this code to be encapsulated. Linestyle is not being called correctly.

This example code calculates the ratio between the X and Y columns of the RATIO table.

16 January, 2013   

How to calculate age in years and months

13 June, 2011   

This C# code snippet inputs the principal and interest amounts and calculates simple interest.

03 May, 2012   

MYSQL code example for calculation of Easter Day This code taken from

11 September, 2014   

Code to display the current time as a .PNG image.