This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef heroku | |
local state ret=1 | |
local -a cmds | |
cmds=( | |
"version:show the gem version" \ | |
"list:list your apps" \ | |
"create:create a new app" \ | |
"keys:show your user's public keys" \ | |
"keys\:add:add a public key" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
class Nokogiri::XML::Node | |
def to_hash(selector = 'body > *') | |
hash = [] | |
self.css(selector).each do |node| | |
hash << node.collect_nodes | |
end | |
hash | |
end |
NewerOlder