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
| package com.databricks.spark.jira | |
| import scala.io.Source | |
| import org.apache.spark.rdd.RDD | |
| import org.apache.spark.sql._ | |
| import org.apache.spark.sql.functions._ | |
| import org.apache.spark.sql.sources.{TableScan, BaseRelation, RelationProvider} |
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 json | |
| from time import time | |
| from flask import Flask, request | |
| app = Flask(__name__) | |
| from redisqueue import RedisQueue | |
| queue = RedisQueue(name='joffrey') | |
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 struct | |
| import SocketServer | |
| from base64 import b64encode | |
| from hashlib import sha1 | |
| from mimetools import Message | |
| from StringIO import StringIO | |
| class WebSocketsHandler(SocketServer.StreamRequestHandler): | |
| magic = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' |