Skip to content

Instantly share code, notes, and snippets.

View dant89's full-sized avatar

Dan dant89

  • Kent, United Kingdom
View GitHub Profile
@dant89
dant89 / db_schema.sql
Created September 30, 2025 16:15
A sample Database schema, as referenced in the Medium MCP article.
-- Users table
CREATE TABLE users (
id SERIAL PRIMARY KEY,
username VARCHAR(50) NOT NULL,
email VARCHAR(100) UNIQUE NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX idx_users_username ON users(username);
@dant89
dant89 / api_schema.json
Last active September 30, 2025 16:15
A sample RESTful API JSON schema, as referenced in the Medium MCP article.
{
"openapi": "3.0.0",
"info": {
"title": "Sample API",
"version": "1.0.0"
},
"paths": {
"/users": {
"get": {
"summary": "List all users",
@dant89
dant89 / docker-compose.yml
Created May 1, 2021 13:48
Cassandra Docker
version: '3.5'
volumes:
cassandra:
driver: local
services:
cassandra:
container_name: go_microservice_api-cassandra
image: cassandra:latest
@dant89
dant89 / lightweightLightbox.jquery.js
Last active January 31, 2016 14:34
Lightweight jQuery Lightbox - Sample of the code used in https://github.com/Silver89/jQuery-lightweightLightbox
/*
* LightweightLightbox.js v1.0.0
* https://github.com/Silver89/jQuery-lightweightLightbox
*
* Copyright 2016, Dan Thorpe
* This content is released under the MIT license
* http://en.wikipedia.org/wiki/MIT_License
*/
(function($){