Skip to content

Instantly share code, notes, and snippets.

View frostming's full-sized avatar

Frost Ming frostming

View GitHub Profile
@frostming
frostming / app.py
Last active September 7, 2019 01:39
Simple Flask APP with Dispatcher
import flask
from flask_login import LoginManager, UserMixin, login_user, logout_user
from flask_sqlalchemy import SQLAlchemy
from werkzeug.middleware.dispatcher import DispatcherMiddleware
settings = {
"SECRET_KEY": "hesdfdsfklj;l",
"SQLALCHEMY_DATABASE_URI": "sqlite:///db.sqlite3",
}
@frostming
frostming / README.md
Last active March 19, 2019 03:11
Simple CORS example with Flask

A simple example of CORS & Ajax with Flask

Requirements

$ pipenv install flask flask-cors

Start development server

@frostming
frostming / __init__.py
Created March 31, 2018 03:31 — forked from nitely/__init__.py
Python Markdown parser
# -*- coding: utf-8 -*-
# Copyright (c) 2017 by Esteban Castro Borsani.
# Released under MIT license
from .elements import (
Header,
Quote,
HRule,
UListItem,
# Under UIVariables directory
title = "Main Window"