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
// Robinson projection calculation | |
// Written by Niklas Bichinger (bichinger.de). This code is Public Domain - use as you like. | |
// source of robinson numbers: https://simplemaps.com/static/img/flash/robinson_projection_table.jpg | |
var robinsonAA = [ | |
0.84870000, | |
0.84751182, | |
0.84479598, | |
0.84021300, |
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
require 'csv' | |
class MSSQLAdministratorCSVParser | |
QUOTE = '"' | |
ESCAPE = '"' | |
SEPARATORS = %W(; , \t) # when equally probable, separatur occurring first is being picked | |
UTF8_BOM = "\xef\xbb\xbf".force_encoding('ASCII-8BIT') | |
def initialize(file_name, options={}) |