Skip to content

Instantly share code, notes, and snippets.

@idkw
idkw / geometry_geojson.yaml
Last active Jul 18, 2019 — forked from bubbobne/geometry_geojson.yaml
A swagger geojson geometry description
View geometry_geojson.yaml
swagger: '2.0'
info:
version: "1.0.0"
title: GeoJSON geometry
description: An example of swagger file for a geographic API. It contains the geometry definitions
termsOfService: "no"
contact:
name: Daniele Andreis
email: daniele.andreis@gmail.com
url: ""
@idkw
idkw / gist:b57d42113ac0d318a22bf4b9d7614da4
Last active Apr 13, 2016
Drop all tables from a SQL Server schema (uncomment -- EXEC to apply changes)
View gist:b57d42113ac0d318a22bf4b9d7614da4
---------------------------------------------
-- SQLServer : DROP all tables from SCHEMA_NAME
---------------------------------------------
DECLARE @SCHEMA_NAME varchar(100)
SET @SCHEMA_NAME = 'my_schema'
DECLARE @cmd varchar(4000)
DECLARE MY_CURSOR CURSOR
@idkw
idkw / gist:30a9ff280df6bc3e89227d8c1144de64
Last active Apr 13, 2016
Drop all constraints from a SQL Server schema (uncomment -- EXEC to apply changes)
View gist:30a9ff280df6bc3e89227d8c1144de64
---------------------------------------------
-- SQL Server : DROP all constraints from SCHEMA_NAME
---------------------------------------------
DECLARE @SCHEMA_NAME varchar(100)
SET @SCHEMA_NAME = 'my_schema'
DECLARE @cmd varchar(4000)