Allow the behavior of a decorator to be modified by other decorators.
@mod_b
@mod_a
@base_decorator
def myfunc(): pass
In contrast to a more typical
[user] | |
name = {name} | |
email = {email} | |
[diff] | |
tool = kdiff3 | |
[core] | |
autocrlf = input | |
editor = /usr/local/bin/vim | |
[alias] | |
# Short status, one line per file |
--- | |
# Ansible script for first-boot tightening up Ubuntu security | |
# Reference blog https://ryaneschinger.com/blog/securing-a-server-with-ansible/ | |
- hosts: all | |
vars: | |
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_LOGWATCH_EMAIL: [email protected] | |
ubuntu_common_deploy_user_name: deploy |
Certain SQL dialect specific SQL including triggers and stored procedures are not abstracted away by SqlAlchemy. In those cases SqlAlchemy provides a DDL interface that can be connected to events that conditionally trigger the appropriate dialect specific code.
ddl = sqlalchemy.DDL(custom_pg_trigger)
Flask supported user authentication combined with direct apache basic authentication for static files
The flask-security module uses flask-login to authenticate users and stores a token identifying the user in a session cookie encrypted using an application secret the prevents forgery. Additional modules can be used to store session
var fs = require('fs'); | |
var https = require('https'); | |
var deployd = require('deployd'); | |
var express = require('express'); | |
var socketIO = require('socket.io'); | |
var dbhost = process.env.MONGODB_TCP_ADDR; | |
var dbport = process.env.MONGODB_TCP_PORT; | |
var dbname = process.env.MONGODB_DB_NAME || 'dbname'; | |
var dbuser = process.env.MONGODB_USERNAME; |
// example courtesy of http://adilatwork.blogspot.com/2012/11/android-dialogfragment-enter-and-exit.html | |
// file location: src/main/java/com/example/ | |
@Override | |
public void onStart() { | |
super.onStart(); | |
// safety check | |
if (getDialog() == null) { | |
return; |