Mac keyboard on laptop

Tag Ruby

Using strftime for Date Formatting

photo shows an zoomed in watch face with weekday, date, and month dials.

For some reason when I’m working with dates in Ruby or R, I forget that there is a super handy method that can be used to format a date, or even a string, so that it looks completely different. Most…

Markdown in Ruby on Rails with RedCarpet

Marilyn Monroe impersonator on red carpet

What is Markdown Markdown is a markup language, created by John Gruber and Aaron Swartz, that allows you to easily format text by using special characters in a text document. When processed, the markdown characters are converted into formatted text.…

Writing Array Elements to CSV in Ruby

A bald man holding book in front of face. book says "fail, fail again, fail better."

There is nothing more frustrating than realizing that a ruby script failed when processing, and you do not know where it failed and where to pick up the processing. Having the ability to write results or values out to a…