Skip to content

Instantly share code, notes, and snippets.

View chihane's full-sized avatar

chihane chihane

  • Insomnia Inc.
  • Wuhan, China
View GitHub Profile
@chihane
chihane / JSPromise
Created May 29, 2018 02:04 — forked from timfreiheit/JSPromise
Android JavascriptInterface Promise
import android.os.Build;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import com.google.gson.Gson;
import java.util.concurrent.Callable;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
@chihane
chihane / SimpleHTTPServerWithUpload.py
Created March 5, 2018 01:47 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""