I hereby claim:
- I am mojombo on github.
- I am mojombo (https://keybase.io/mojombo) on keybase.
- I have a public key whose fingerprint is 2D99 08C1 7B77 D96C 626E 0957 AA61 B463 79AA F7E5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| " Vim color file | |
| " Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration) | |
| set background=dark | |
| highlight clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif |
| require 'nokogiri' | |
| doc = Nokogiri.HTML DATA | |
| doc.xpath('//div//text()').map { |x| x.content = x.to_s } | |
| p doc.serialize(:save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION) | |
| __END__ | |
| <div> <span>x</span></div> |
| <container> | |
| <thing /> | |
| <!-- | |
| I think this is the least horrible way to format XML comment | |
| blocks. Even though it wastes two lines, at least it doesn't | |
| involve tons of indenting or horribly misaligned edges. | |
| --> | |
| <fooblah size="10" count="alot" /> | |
| </container> |
| # Convert an array of nested key parts into a nested Hash and convert the | |
| # value to a proper Ruby object. | |
| # | |
| # keyparts - An Array of String parts of the nested Hash. For instance, the | |
| # list ['a', 'b', 'c'] would lead to a nested hash that looks like | |
| # {'a' => {'b' => {'c' => X}}}. | |
| # val - The String value that will be converted into the proper Boolean, | |
| # Integer, or String. | |
| # | |
| # Returns the nested Hash. |
| [21:24][tom@lepton:~(master)]$ perl --version | |
| This is perl, v5.10.0 built for darwin-thread-multi-2level | |
| (with 2 registered patches, see perl -V for more detail) | |
| [21:23][tom@lepton:~(master)]$ cat test.pod | |
| =head1 Title | |
| =over 4 |
| # Put this file in your config/initializers directory and behold a tastier auto_link! | |
| module ActionView | |
| module Helpers | |
| module TextHelper | |
| # Use auto_link and friends from Rails 3. They do the right thing (tm). | |
| remove_const(:AUTO_LINK_RE) if defined?(AUTO_LINK_RE) | |
| AUTO_LINK_RE = %r{ | |
| ( https?:// | www\. ) |
| Sandwiches: | |
| * Jay's Cheesesteaks (many seitan flavors) | |
| * Ike's Place (tons of amazing veggie sandwiches) | |
| * Toaster Oven (Potbelly's clone) | |
| Mexican: | |
| * Papalote (their house salsa is the best IN THE WORLD) | |
| * El Buen Sabor (my favorite super veggie burrito) | |
| * Taqueria Cancún (classic mission burrito; open till 2am on fri/sat, 1am other days, I think) |