53 cheat sheets and growing

Posted by Dr Nic on October 19, 2006

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.

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. Phil Thu, 19 Oct 2006 17:09:36 UTC

    Three cheers for Hpricot!

  2. Phil Thu, 19 Oct 2006 17:10:23 UTC

    Oh yes also three cheers for Cheat. Sorry.

  3. Dr Nic Thu, 19 Oct 2006 17:11:10 UTC

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

  4. Chris Thu, 19 Oct 2006 23:34:02 UTC

    53 cheers for technomancy!

  5. Piggybox Fri, 20 Oct 2006 02:09:47 UTC

    The cheatsheet for blogs is kind of …
    :^)

  6. Herry Fri, 20 Oct 2006 04:41:04 UTC

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

  7. Dr Nic Fri, 20 Oct 2006 07:34:39 UTC

    @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 Tue, 31 Oct 2006 06:02:26 UTC

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

  9. M Strane Fri, 15 Feb 2008 17:10:07 UTC

    Many cheers for this cheatsheet!

Comments