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 createGensimObjects(task): | |
task_tag = "GENSIM TOPIC EXTRACTION" | |
print "\n\n************** %s [START] ******************\n" % task_tag | |
print "USING TEXT DOCUMENT at %s" % task.doc_id | |
task.setStatus(302) | |
from lib.Worker.Models.uv_document import UnveillanceDocument | |
from conf import DEBUG | |
from vars import ASSET_TAGS |
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 sys import argv, exit | |
def page_map_to_csv(file_in, file_out=None): | |
import os | |
if not os.path.exists(file_in): | |
print "NOPE: %s is not there" % file_in | |
return False | |
from json import loads |
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 ubuntu:14.04 | |
MAINTAINER harlo <[email protected]> | |
# UPDATE | |
RUN apt-get update | |
RUN apt-get -yq install openssl python-dev make curl openssh-server | |
RUN useradd -ms /bin/bash -p $(openssl passwd -1 'YOUR PASSWORD, DINGUS') globaleaks | |
RUN adduser globaleaks sudo |
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 get_image_info(data): | |
""" | |
FROM http://markasread.net/post/17551554979/get-image-size-info-using-pure-python-code | |
Return (content_type, width, height) for a given img file content | |
no requirements | |
""" | |
import struct | |
data = str(data) |
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
package info.guardianproject.pixelknot.utils; | |
import java.util.ArrayList; | |
import java.util.Random; | |
import android.content.Context; | |
import android.view.textservice.SentenceSuggestionsInfo; | |
import android.view.textservice.SpellCheckerSession; | |
import android.view.textservice.SpellCheckerSession.SpellCheckerSessionListener; | |
import android.view.textservice.SuggestionsInfo; |
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
*.pyc |
OlderNewer