This file contains hidden or 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
// AttributedString class from https://github.com/cohitre/attributedString.js | |
// Modifications made to support html tags & remove span wrapper from unstyled blocks | |
var AttributedString = (function () { | |
var aString | |
, StringRange | |
, RangesList | |
, HtmlSerializer | |
, plainStringSerializer | |
, _ = {} | |
, entityMap = { |
This file contains hidden or 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
#task is a task that is not interested in any results from other tasks | |
#callback is a task you want to call after each group is finished (ex. log time) | |
# and has to take a list of results as first arguement | |
@app.task(base=Task) | |
def task(i): | |
#do stuff | |
pass | |
@app.task(base=Task) |
This file contains hidden or 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
import gdata | |
import json | |
import requests | |
# More examples: | |
# https://github.com/millioner/Python-contact-importer/blob/master/contact_importer/providers/google.py | |
# https://github.com/jtauber/django-friends/blob/master/friends/importer.py | |
# GData with access token | |
token = gdata.gauth.OAuth2Token( |