<?xml version="1.0" encoding="UTF-8"?>
<codes type="array">
  <code>
    <code>&gt;&gt; require 'hirb'
=&gt; []
&gt;&gt; Hirb.enable
=&gt; nil
&gt;&gt; Exam.find(:all, :limit =&gt; 5)
+----+----------+----------+----------+----------+---------+----------+------+
| id | title    | exam     | creat... | updat... | user_id | categ... | hits |
+----+----------+----------+----------+----------+---------+----------+------+
| 1  | Simul... | Simul... | 2009-... | 2009-... | 1       | 1        | 152  |
| 2  | Simul... | Simul... | 2009-... | 2009-... | 1       | 1        | 143  |
| 3  | Espec... | Espec... | 2009-... | 2009-... | 1       | 1        | 1089 |
| 4  | Espec... | Espec... | 2009-... | 2009-... | 1       | 1        | 80   |
| 5  | Espec... | Espec... | 2009-... | 2009-... | 1       | 1        | 40   |
+----+----------+----------+----------+----------+---------+----------+------+
5 rows in set
&gt;&gt;</code>
    <created-at type="datetime">2009-07-01T20:20:37Z</created-at>
    <description>to install: 
gem install cldwalker-hirb --source http://gems.github.com</description>
    <id type="integer">183</id>
    <language-id type="integer">39</language-id>
    <privated type="boolean">false</privated>
    <title>hirb example</title>
    <updated-at type="datetime">2009-07-01T20:20:37Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>require 'rubygems'
require 'google_translate'

tr = Google::Translate.new

# from English to Spanish
tr.translate :from =&gt; &quot;en&quot;, :to =&gt; &quot;es&quot;, :text =&gt; &quot;Hello, World!&quot;
 =&gt; Hola, Mundo!</code>
    <created-at type="datetime">2009-04-20T00:56:54Z</created-at>
    <description>install:
sudo gem install google_translate</description>
    <id type="integer">169</id>
    <language-id type="integer">39</language-id>
    <privated type="boolean">false</privated>
    <title>Google::Translate, A Simple API In Ruby</title>
    <updated-at type="datetime">2009-04-20T00:56:54Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>cheat sheets</code>
    <created-at type="datetime">2008-11-29T20:24:52Z</created-at>
    <description>for install: sudo gem install cheat
+ info: http://cheat.errtheblog.com/</description>
    <id type="integer">123</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>all cheats avaliable</title>
    <updated-at type="datetime">2008-11-29T20:24:52Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>sudo gem install cheat</code>
    <created-at type="datetime">2008-11-29T20:12:33Z</created-at>
    <description>http://cheat.errtheblog.com/</description>
    <id type="integer">121</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>gem cheat</title>
    <updated-at type="datetime">2008-11-29T20:12:33Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>gem outdated # give list of gems which are outdate

gem list # list of all gems in the system with thier version number.if there was 2 version then it would give them in descending order

gem cleanup # clean the older version when there are 2 version available

gem dependency rails # list all the dependencies for a gem

gem install rails &#8211;no-rdoc # skips documentation

gem server # run in localhost:8808 rdoc documentation

gem query --remote --name-matches rails # find a gem

gem sources # list repositories</code>
    <created-at type="datetime">2008-11-23T21:50:36Z</created-at>
    <description>http://docs.rubygems.org/read/book/2</description>
    <id type="integer">115</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>gem guide</title>
    <updated-at type="datetime">2008-11-23T21:55:40Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
  <code>
    <code>gem query --remote --name-matches rails</code>
    <created-at type="datetime">2008-11-23T12:05:52Z</created-at>
    <description></description>
    <id type="integer">113</id>
    <language-id type="integer">42</language-id>
    <privated type="boolean">false</privated>
    <title>find a gem to install</title>
    <updated-at type="datetime">2008-11-23T12:05:52Z</updated-at>
    <user-id type="integer">7</user-id>
  </code>
</codes>
