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
var showRebookDialog = function () { | |
var $conversation = $(this).closest('.conversation'); | |
var providerUrl = $conversation.attr('data-provider-url'); | |
var requesterUrl = $conversation.attr('data-requester-url'); | |
$.getJSON(providerUrl, function (provider) { | |
$.getJSON(requesterUrl, function (requester) { | |
var view = new RebookDialogView({ | |
el: '.js-rebook-dialog-container', | |
sender: provider, | |
receiver: requester, |
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
BeautifulSoup==3.2.1 | |
Django==1.4.8 | |
FuelSDK==0.9.0 | |
GnuPGInterface==0.3.2 | |
Landscape-Client==12.05 | |
M2Crypto==0.22.3 | |
Mako==0.7.3 | |
Markdown==2.3.1 | |
MarkupSafe==0.15 | |
MySQL-python==1.2.3 |
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 itertools import tee, izip, izip_longest | |
def pairwise_overlapping(iterable, n=2): | |
""" | |
Given a sequence, returns a list of pairs/tuples of length n, each comprised of sequential values | |
from the sequence. Each tuple starts with the subsequent value from the original sequence. | |
>>> s = 1, 2, 3, 4, 5 | |
>>> list(pairwise_overlapping(s)) |