Skip to content

Instantly share code, notes, and snippets.

View zxfjd3g's full-sized avatar

张晓飞 zxfjd3g

  • 尚硅谷IT教育
View GitHub Profile
@svangsgaard
svangsgaard / VolleyHelper.java
Last active April 22, 2022 01:53
A helper class to Google volley. Made with inspiration from AFNetworking. Usage: volley = new VolleyHelper(this, "<BASEURL>"/*Maybe get url from getString*/); volley.post("<service_name>", null, new Listener<JSONObject>() { @OverRide public void onResponse(JSONObject response) { Log.i("Got JSON", response.toString()); } }, new ErrorListener() { @…
import org.json.JSONObject;
import android.content.Context;
import com.android.volley.Request.Method;
import com.android.volley.RequestQueue;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.toolbox.ImageLoader;
#!/bin/bash
# Attempts to install the web application vulnerability scanner w3af and it's prerequisites.
# For more information about w3af, see: http://w3af.sourceforge.net/
# USAGE: pypi_install package_name version_number md5_checksum
# checksum is optional; package and version are required
function pypi_install() {
name=$1
version=$2