This file contains 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
%w[rubygems wirble pp ap].each do |gem_name| | |
begin | |
require gem_name | |
rescue LoadError => err | |
warn "Please do: gem install #{gem_name.sub(/\/.*/,'')}" | |
end | |
end | |
Wirble.init | |
Wirble.colorize |
This file contains 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'nokogiri' | |
XML_FILE = ARGV[0] | |
CSV_FILE = ARGV[1] | |
if XML_FILE.nil? || CSV_FILE.nil? | |
puts 'usage: ruby jmeterxmltocsv.rb source_file target_file' |
This file contains 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
# Get this working in an initializer... | |
%w(zipcode, city, designated_market_area, core_based_statistical_area).each do |t| | |
Zips::<t's classified name here>.set_schema("") | |
Zips::<t's classified name here>.set_table_name("zips_#{t.pluralize}") | |
end |
NewerOlder