- Look into the RAML spec for Web APIs, and ways to visualize it (e.g. raml to html).
http://raml.org/
2. Automatically generate a RAML spec for a basic web API built using django rest framework Serializer
s and APIView
s
http://raml.org/
2. Automatically generate a RAML spec for a basic web API built using django rest framework Serializer
s and APIView
s
Download and install all instant client rpm
s from the Oracle website. For version 11.2.0.4.0
you probably need at least
oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm
oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm
##API idea
Promises support:
isResolved
attribute, which is false when the promise has been started but not yet resolved.app.js
define(['angular', 'login', 'charts', 'routes'],
function(angular, login, charts, routes){
'use strict';
angular.module('app', [
login.name,
charts.name
...
import select | |
import datetime | |
import psycopg2 | |
import psycopg2.extensions | |
from sqlalchemy import create_engine, text | |
engine = create_engine("postgresql+psycopg2://vagrant@/postgres") |
import select | |
import datetime | |
import psycopg2 | |
import psycopg2.extensions | |
conn = psycopg2.connect(database="postgres", user="vagrant") | |
#conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT) | |
curs = conn.cursor() |
from sqlalchemy_continuum import get_versioning_manager | |
class VersionBase(object): | |
"""Base class for SQL Alchemy continuum objects that supports tagging""" | |
@classmethod | |
def tag_current_transaction(cls, **kwargs): | |
"""Add keyword arguments that will be stored as a `TransactionMeta` | |
entry on next successful commit that includes versioned objects. | |
""" |
GaTransactionConf = namedtuple("GaTransactionConf", ["sku", "name", "category"]) | |
class GaTransactionsDict(dict): | |
def __getitem__(self, key): | |
if isinstance(key, GaTransactionConf): | |
for mapping in self.keys(): | |
if cmp_ga_conf(key, mapping): | |
key = mapping #update the key | |
return dict.__getitem__(self, key) |