Skip to content

Instantly share code, notes, and snippets.

@azolotko
Created October 4, 2011 09:20
Show Gist options
  • Save azolotko/1261218 to your computer and use it in GitHub Desktop.
Save azolotko/1261218 to your computer and use it in GitHub Desktop.
rb_data_object_alloc throws exception if klass is NULL
# IP2Location you can get from http://www.ip2location.com/ruby.aspx
require 'IP2Location'
locator = IP2Location.new
locator.open("./IP-COUNTRY-REGION-CITY-LATITUDE-LONGITUDE.BIN")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment