Skip to content

Instantly share code, notes, and snippets.

JerzyPuchalski /
Created March 21, 2016 13:05
Retrifit 2 redirect problem with changing POST into GET
package net.nerrd.alcoquiz;
import org.junit.Test;
import okhttp3.ResponseBody;
import okhttp3.mockwebserver.MockResponse;
import okhttp3.mockwebserver.MockWebServer;
import okhttp3.mockwebserver.RecordedRequest;
import retrofit2.Call;
import retrofit2.Response;
JerzyPuchalski /
Created February 9, 2016 19:36 — forked from deepankarb/
A script to generate android assets from a SVG file. Requires inkscape to resize and convert.
if [[ -z "$1" ]];
echo "No SVG file specified. Exiting."
exit -1
ispng=$(file $1)
echo $ispng | grep -q SVG