set -x
. /lib/functions/;
# Domain you wish to update
# Get your v2 API token from here:
#!/usr/bin/env python3
Simple mathematical expression parser for infix syntax.
- only supports +-/* and ()
- fails with prefix syntax: -1
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer
from sqlalchemy.dialects.postgres import HSTORE
from sqlalchemy.sql import text
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('postgresql:///hstore_test', echo=True)
session = sessionmaker(bind=engine)()
Base = declarative_base()
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext import admin
from flask.ext.admin.contrib import sqlamodel
from flask.ext.admin.model import InlineFormAdmin
# Create application
app = Flask(__name__)
View gist:3470780
def push_context(fn):
def decorator(*args, **kwargs):
app_host = app.config.get('SERVER_NAME')
app_root = app.config.get('APPLICATION_ROOT')
base_url = 'https://{}/'.format(app_host if app_host else 'localhost')
if app_root:
base_url += app.root.lstrip('/')
return fn(*args, **kwargs)
View test.html
256 CSS Classes can Override #id:
W3C documentation on selector specificity:
Code samples from:
Also implementation source from Mozilla and WebKit:
View werkzeug.patch
diff --git a/werkzeug/testsuite/ b/werkzeug/testsuite/
index 795de90..5ee8864 100644
--- a/werkzeug/testsuite/
+++ b/werkzeug/testsuite/
@@ -26,7 +26,7 @@ from werkzeug.datastructures import MultiDict
def cookie_app(environ, start_response):
- """A WSGI application which sets a cookie, and returns as a ersponse any
+ """A WSGI application which sets a cookie, and returns as a response any