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
/* css to make <div id="new">NEW</div> into this: http://bit.ly/5sf4sq */ | |
#new { | |
display:block; | |
width:40px; | |
height:30px; | |
padding-top:10px; | |
background-color:#F72F3C; | |
color:white; | |
text-align:center; |
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
// Playground - noun: a place where people can play | |
import Cocoa | |
protocol UnitBase { | |
class var unitLabel:String { get } | |
} | |
// T: the unit | |
// U: its inverse |
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
ARG PG_VERSION=12.5 | |
ARG VERSION=dev | |
FROM golang:1.16 as flyutil | |
ARG VERSION | |
WORKDIR /go/src/github.com/fly-examples/postgres-ha | |
COPY . . |
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
CREATE EXTENSION postgis; |
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
CREATE USER felt_user WITH PASSWORD 'your_secure_password'; | |
GRANT CONNECT ON DATABASE your_database TO felt_user; | |
GRANT USAGE ON SCHEMA public TO felt_user; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO felt_user; | |
-- Grant select permission on future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO felt_user; |
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
CREATE TABLE cities ( | |
id SERIAL PRIMARY KEY, | |
name VARCHAR(100), | |
geom GEOMETRY(Point, 4326) | |
); |