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
#!/usr/bin/env python | |
from BeautifulSoup import BeautifulSoup | |
import tempfile | |
import shutil | |
import zipfile | |
import requests | |
import StringIO | |
import re |
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
def _split_message(message): | |
wall = models.Wall.objects.all() | |
if len(wall) == 1: | |
keyword = str(wall[0].sms_keyword) | |
message = message.replace(keyword, '').replace(' ', ' ') | |
return keyword, message | |
codes = re.search("(^|\s)(\w{3})(\s|$)", message) | |
if codes == None: | |
return None, None | |
keyword = _get_keyword(codes) |
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
unisubs.streamer.StreamBox.prototype.scrollIntoView_ = function(streamSub) { | |
if (this.ignoreVideoScrolling_) { | |
return; | |
} | |
this.videoScrolling_ = true; | |
console.log('scrolling into container view'); | |
goog.style.scrollIntoContainerView( | |
streamSub.getSpan(), this.transcriptElem_, true); |
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
// Universal Subtitles, universalsubtitles.org | |
// | |
// Copyright (C) 2010 Participatory Culture Foundation | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU Affero General Public License as | |
// published by the Free Software Foundation, either version 3 of the | |
// License, or (at your option) any later version. | |
// | |
// This program is distributed in the hope that it will be useful, |