Skip to content

Instantly share code, notes, and snippets.

View kimthostrup's full-sized avatar

Kim Thostrup kimthostrup

View GitHub Profile
@kimthostrup
kimthostrup / imapsync example
Last active August 29, 2015 14:23
imapsync example - from Apple Server (Dovecot) to Kolab Groupware server (Cyrus)
./imapsync --nofoldersizes --nosyncacls --syncinternaldates -sep2 / --host1 192.168.10.2 --user1="kim" --password1 'mysecretpasseord' --sep2 . --delete2 --regextrans2 's/^INBOX\.(.+)/$1/' --host2 192.168.10.57 --user2 [email protected] --password2 'myothersecretpassword'
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index(chartID = 'chart_ID', chart_type = 'bar', chart_height = 350):
chart = {"renderTo": chartID, "type": chart_type, "height": chart_height,}
series = [{"name": 'Label1', "data": [1,2,3]}, {"name": 'Label2', "data": [4, 5, 6]}]
title = {"text": 'My Title'}