Skip to content

Instantly share code, notes, and snippets.

View pj8912's full-sized avatar
💭
...

John Pinto pj8912

💭
...
View GitHub Profile
@pj8912
pj8912 / crud.sql
Created July 29, 2022 13:26
python basic mysql CRUD functionalities
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 29, 2022 at 03:26 PM
-- Server version: 10.4.24-MariaDB
-- PHP Version: 8.0.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
@Julian-Nash
Julian-Nash / flask_sitemap_generator.py
Last active March 31, 2025 10:44
Flask dynamic sitemap generator
@app.route("/sitemap")
@app.route("/sitemap/")
@app.route("/sitemap.xml")
def sitemap():
"""
Route to dynamically generate a sitemap of your website/application.
lastmod and priority tags omitted on static pages.
lastmod included on dynamic content such as blog posts.
"""
from flask import make_response, request, render_template