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
//support | |
//constants | |
// const timeslices = [ | |
// "12:00am", | |
// "12:15am", | |
// "12:30am", | |
// "12:45am", | |
// "1:00am", | |
// "1:15am", | |
// "1:30am", |
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
//support | |
//constants | |
const timeslices = [ | |
"12:00am", | |
"12:30am", | |
"1:00am", | |
"1:30am", | |
"2:00am", | |
"2:30am", | |
"3:00am", |
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
class CreatePlaces < ActiveRecord::Migration | |
# Rails migration for GeoWorldMap db into postgresql db | |
#(inspired by http://blog.inspired.no/populate-your-database-with-free-world-cities-countries-regions-in-2-minutes-using-a-rails-migration-273/ post) | |
#modified from the original gist, because of Heroku errors due to copy | |
#thanks to this post for helping me out: | |
#http://www.kadrmasconcepts.com/blog/2013/12/15/copy-millions-of-rows-to-postgresql-with-rails/ | |
#extract files from GeoWorldMap.zip archive from here | |
# http://www.geobytes.com/GeoWorldMap.zip | |
# |