Author Archives: Laura

5 minute code: JQuery Tabbed Interface

The JQuery UI library is awesome for doing super cool stuff super quick. For example, a tabbed interface! Who wants to reload after you click on a tab? No one. Who wants to take ages to code it? No one. Therefore, welcome to TGC’s 5 minutes of code! 1. Make the tab links.  Make sure...
Read More

Parsing HTML with Nokogiri

Parsing with Nokogiri is a breeze, especially if you’re super familiar with CSS selectors and you’re good at traversing the DOM. 1. First, you need to install the Nokogiri gem: gem install nokogiri   If you are parsing something that lives remotely, you might want to include the open-uri module, which will make it even...
Read More