December 2010
5 posts
Dec 29th
1 note
Dec 22nd
884 notes
Dec 12th
Dec 10th
Convert 2-letter State Name to Full State Name...
I recently ran across some old code that was using a database table to convert 2-letter state names (ex “NY”) to full state names (“New York”).  The process of hitting the database (or even joining) seemed a little excessive, so I dumped the “states” table into a CSV, wrote a Ruby script to convert the data to a hash, then wrote this little helper method. ...
Dec 8th