Skip to content

Instantly share code, notes, and snippets.

@idkw
idkw / geometry_geojson.yaml
Last active July 18, 2019 15:33 — forked from bubbobne/geometry_geojson.yaml
A swagger geojson geometry description
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 April 13, 2016 11:58
Drop all tables from a SQL Server schema (uncomment -- EXEC to apply changes)
---------------------------------------------
-- 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 April 13, 2016 11:58
Drop all constraints from a SQL Server schema (uncomment -- EXEC to apply changes)
---------------------------------------------
-- SQL Server : DROP all constraints from SCHEMA_NAME
---------------------------------------------
DECLARE @SCHEMA_NAME varchar(100)
SET @SCHEMA_NAME = 'my_schema'
DECLARE @cmd varchar(4000)