Dr Nic

53 cheat sheets and growing

I said previously that errtheblog’s cheat app would have 100s+ of cheat sheets.

After a month and a half, they are now half way. There is still more cheating to be done.

> require 'map_by_method'
> require 'hpricot'
> require 'open-uri'
> doc = Hpricot(open("http://cheat.errtheblog.com/b"))
> cheatsheets = doc.search('div.content/ul/li').children.map_inner_html.flatten
=> ["ascii", "assertions", "assert_select", "balloon", "bash", "belongs_to", "blogs",
"callbacks", "capistrano", "cheat", "database_yml", "deprecated", "environments",
"exceptions", "firebug", "google_mail", "google_reader", "gruff", "has_and_belongs_to_many",
"has_many", "has_one", "http_status_codes", "iomodes", "jedit_ruby_editor_plugin",
"link_to_remote", "markaby", "markdown", "matz_bot", "microformats_helper",
"migrations", "mocha", "nonsense", "prototype", "rails_console", "rails_edge", "rdoc",
"readline", "regex", "rjs", "rspec", "ruby", "scrapi", "sprintf", "sti", "strftime", "svn",
"tempfile", "textmate_rails", "tld", "validations", "vim", "vim_goodies", "wmii3"]
> puts "#{cheatsheets.length} cheat sheets and counting..."
53 cheat sheets and counting...

By the way, they celebrated when they hit 42.

Related posts:

  1. Sentences with links I have suggested I’d release 0.9 many times on Google...
  2. RadRails Templates Cheat Sheets Now that RadRails is blessed with 100s of templates/snippets the...
  3. Create and deploy command line apps with RubyGems RubyGems have many things going for them: they are a...
  4. Exporting Netvibes bookmarks to Del.icio.us For 12 months I’ve been using Netvibes to store bookmarks....
  5. 100s cheatsheets for Ruby and Rails Ok, disclaimer. As of writing there aren’t exactly 100+ cheatsheets...

9 Responses to “53 cheat sheets and growing”

  1. Phil says:

    Three cheers for Hpricot!

  2. Phil says:

    Oh yes also three cheers for Cheat. Sorry.

  3. Dr Nic says:

    So that’s 6 cheers in total or where you thinking of 1.5 cheers each?

  4. Chris says:

    53 cheers for technomancy!

  5. Piggybox says:

    The cheatsheet for blogs is kind of …
    :^)

  6. Herry says:

    Can also run “cheat sheets” to list all the available list. :)

  7. Dr Nic says:

    @herry – if only the list came with a counter then I wouldn’t have any reason to fartarse around with hpricot for my own amusement. That’d be no fun :)

  8. Herry says:

    Yeah…I realized that after I posted my comment. Hehe..Love your posts btw, learn lots of stuff from you. Thanks!!

  9. M Strane says:

    Many cheers for this cheatsheet!