Skip to content

Instantly share code, notes, and snippets.

View khmaksim's full-sized avatar
🏠
Working from home

kolobok khmaksim

🏠
Working from home
View GitHub Profile
@lucidfrontier45
lucidfrontier45 / flask-sqlite.py
Created January 27, 2015 09:11
Enforce FK constraint for SQLite with when using flask-sqlalchemy
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
try:
app.config.from_object("config")
except:
pass
if app.config["SQLALCHEMY_DATABASE_URI"].startswith("sqlite"):
@elpuri
elpuri / gist:3753756
Created September 20, 2012 03:12
A collapsible nested list example in QML
import QtQuick 1.1
Item {
width: 200
height: 300
ListView {
anchors.fill: parent
model: nestedModel
delegate: categoryDelegate