Skip to content

Instantly share code, notes, and snippets.

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

hellwen

🏠
Working from home
View GitHub Profile
@hellwen
hellwen / gist:8332740
Created January 9, 2014 11:28
CREATE EXCEL FILE WITH XLWT AND INSERT IN FLASK RESPONSE VALID FOR JQUERY.FILEDOWNLOAD
import xlwt
import StringIO
import mimetypes
from flask import Response
from werkzeug.datastructures import Headers
#... code for setting up Flask
@app.route('/export/')
def export_view():
@hellwen
hellwen / graphite.md
Last active December 11, 2015 01:09 — forked from caged/graphite.md

Install graphite (http://graphite.wikidot.com) on OS X Mountain Lion(10.8.2).

Prerequisites

  • XQuartx

Check your env

$ python --version
Python 2.7.2