Geekpedia Programming Tutorials






Code Ruby Code

1 2 3 4
(18 code snippets in 4 pages)
Latest Code: 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   
Code

-----
No votes

May 2nd 2008
by Andrew Pociu

Count Words In String

The simplest way to count words in a string using Ruby and regular expressions by splitting the string at each space.

Code

-----
No votes

Apr 23rd 2008
by Andrew Pociu

Mask All Credit Card Digits But Last Four

Mask all the credit card number digits with asterisks except the last 4, for security purposes. The function works for all types of cards (Visa, MasterCard, Amex, Discovery, etc.)

Code

-----
No votes

Apr 16th 2008
by Andrew Pociu

Extract Age from Birth Date

A Ruby function for extracting one's age by passing in the birth date as a parameter.

Code

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

Code

-----
No votes

Feb 29th 2008
by Andrew Pociu

Array of States and their Coordinates

An array of state abbreviations and their approximate GPS coordinates.

1 2 3 4
(18 code snippets in 4 pages)
Filter Results
Show:


Latest IT Jobs


Other Resources
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons