Skip to content

Instantly share code, notes, and snippets.

View huazhouji's full-sized avatar

Denis Lu huazhouji

  • CMBChina
  • UEsDBBQAAAAIADNdTUfktFA8vwIAADAFAAAMAAAAzfi/qMf9tq8udHh0jVTva9swEP1eyP9wsEEa iOX8atYGNmjaDkK3tWzd5yFbF1uzLBlLTma2/e87yU6a7sNYIKDcPd29e/eUjbaOK8WdNBr20uXw dA/3WGtUMGNLNp9FF4OzwRmvXJShA9nhAaeTyQSjZ4jAqjQCIu7RHwwXUmfgcoTbWu6wtj58k2Na hKCP+I5mG36KgGEeQ0Wk3pq+
View GitHub Profile
@qpleple
qpleple / torndb-examples.py
Last active January 8, 2019 05:10
Examples with torndb
# Torndb is a very thin wrapper around MySQLdb that makes it even easier to use MySQL.
# Because it is very light, one can just go through the one-file python source
# to learn how to use it.
# Installation: pip install torndb
# Official doc: http://torndb.readthedocs.org/en/latest/
# Source: https://github.com/bdarnell/torndb/blob/master/torndb.py
from torndb import Connection
@ficusk
ficusk / GsonRequest.java
Last active April 9, 2024 09:03
A Volley adapter for JSON requests that will be parsed into Java objects by Gson.
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.android.volley.AuthFailureError;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;