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/python2.7 | |
#-*- coding=utf-8 -*- | |
import shlex | |
import subprocess | |
from tornado.gen import coroutine, Task, Return | |
from tornado.process import Subprocess | |
from tornado.ioloop import IOLoop | |
@coroutine |
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
import org.apache.http.Header; | |
import org.apache.http.HttpEntity; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.ByteBuffer; | |
import java.nio.charset.Charset; | |
import java.util.*; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; |