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
| def eq(first, *rest): | |
| for r in rest: | |
| assert type(first) is type(r), "Different types %s, %s for inputs (%s,%s)" % (type(first), type(r), first, r) | |
| if first != r: | |
| return False | |
| return True | |
| # eq(1) - True | |
| # eq(1, 1) - True | |
| # eq(1, 1, 1) - True |
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
| # Install PostgreSQL and PostGIS Via Homebrew | |
| # One click installer seems to fail to get PostGIS installed. | |
| # Download GISGraphy Binaries from http://www.gisgraphy.com/download/ | |
| # Move unzipped directory into /src/gisgraphy | |
| # INITIALIZE TABLES | |
| psql -U postgres -d gisgraphy -h 127.0.0.1 -f /src/gisgraphy/sql/create_tables.sql |