Geekpedia Programming Tutorials






Code Code Archive

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
(164 code snippets in 17 pages)
RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
C#

*****
5 from 1 votes

Mar 16th 2008
by Andrew Pociu

Check if string is numeric

This is a one-line C# method that checks whether a string is a numerical value or not, by having regex (regular expressions) match a decimal with or without a floating point.

CSS

-----
No votes

Mar 7th 2008
by Andrew Pociu

Outline All CSS Elements

These few lines lines of CSS will outline every element with a border, up to 8 levels. Add more lines if your CSS elements go into a higher depth.

PHP

***--
3 from 1 votes

Mar 7th 2008
by Andrew Pociu

Efficiently get a Random Array Element

An efficient way to show a random value from an array, using PHP's array_rand() functions.

PHP

-----
No votes

Mar 7th 2008
by Andrew Pociu

Alternating Row Colors

This sample code shows you a different method of alternating row colors in PHP when fetching data from a database using a while loop. The most popular method uses the modulus operator, this one uses a conditional inline statement.

Java

*****
5 from 2 votes

Mar 7th 2008
by Andrew Pociu

Get the Last Day of the Month

Retrieve the last day of the month, by specifying the month and year. It uses the Java Calendar object from the java.util class.

Ruby

-----
No votes

Mar 4th 2008
by Andrew Pociu

Pronounceable Random Password Generator

This piece of code generates a random password of the specified length, but mixes the two sets of letters so that a pronouncable password is being generated.

PHP

-----
No votes

Mar 4th 2008
by Andrew Pociu

Array of States and their Territory Code

A PHP array of US state abbreviations and their corresponding territory code, including the leading zero.

PHP

-----
No votes

Mar 4th 2008
by Andrew Pociu

Array of Street Types and their Abbreviations

A PHP array containing the street types / designations and their canonical form / abbreviation, following the USPS standard.

PHP

*****
5 from 1 votes

Feb 29th 2008
by Andrew Pociu

Get the modified date and time of a file using PHP

An example on how to use the filemtime() function to retrieve the last update date and time of a file.

Ruby

-----
No votes

Feb 29th 2008
by Andrew Pociu

Array of States and their Coordinates

An array of state abbreviations and their approximate GPS coordinates.

Filter Source Code
Programming Language:
Rating:


Advertisement


Other Resources
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
(164 code snippets in 17 pages)
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons