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
| # These modules should be loaded by default: proxy_module, proxy_balancer_module, rewrite_module | |
| Listen *:80 | |
| # You may want to keep the VirtualHost config under extra/*.conf | |
| # Start your thin | |
| <VirtualHost *:80> | |
| ServerName wwww.yourawesomeapp.dev |
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
| # http://ruby-doc.org/stdlib-1.9.2/libdoc/csv/rdoc/CSV.html#method-c-load | |
| # http://ruby-doc.org/stdlib-1.9.2/libdoc/csv/rdoc/CSV.html#method-c-dump | |
| # https://github.com/JEG2/faster_csv/blob/master/test/tc_serialization.rb | |
| require 'csv' | |
| class Person | |
| attr_accessor :id, :name, :email | |
| def self.csv_load(meta, headers, row) | |
| person = Person.new |
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
| # To get this gist running use Ruby 1.9.2 or greater and: | |
| # brew install proj | |
| # gem install proj4rb | |
| # | |
| # http://spatialreference.org/ref/epsg/25831/ | |
| require 'proj4' | |
| utm_point = Proj4::Point.new(43718.773, 72605.572) | |
| utm30 = Proj4::Projection.new(proj: "utm", zone: "30", units: "m", ellps: 'intl') |
NewerOlder