This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import wraps | |
from flask import request, current_app, jsonify | |
def support_jsonp(f): | |
"""Wraps output to JSONP""" | |
@wraps(f) | |
def decorated_function(*args, **kwargs): | |
result = jsonify(f(*args, **kwargs)) | |
callback = request.args.get('callback', False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Adding instrument metadata (node value) to a given caf file. | |
* | |
* Original author: https://gist.github.com/2640513 | |
* Skovhus encountered a bug using gcc 4.2.1. This is the fixed version. | |
* | |
* 2012-10-21 | |
*/ | |
#include <stdio.h> |