Skip to content

Instantly share code, notes, and snippets.

@cduruk
cduruk / gist:283193
Created January 21, 2010 21:05 — forked from 3n/gist:283188
/* 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;
@cduruk
cduruk / units.swift
Created June 11, 2014 22:05 — forked from 74hc595/units.swift
foo
// Playground - noun: a place where people can play
import Cocoa
protocol UnitBase {
class var unitLabel:String { get }
}
// T: the unit
// U: its inverse
@cduruk
cduruk / Dockerfile
Created July 7, 2021 05:17 — forked from mveytsman/Dockerfile
Dockerfile for postgis on fly.io
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 . .
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;
CREATE TABLE cities (
id SERIAL PRIMARY KEY,
name VARCHAR(100),
geom GEOMETRY(Point, 4326)
);