Skip to content

Instantly share code, notes, and snippets.

@JerzyPuchalski
JerzyPuchalski / Retrofit2RedirectProblem.java
Created Mar 21, 2016
Retrifit 2 redirect problem with changing POST into GET
View Retrofit2RedirectProblem.java
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
JerzyPuchalski / svg-to-android.sh
Created Feb 9, 2016 — forked from deepankarb/svg-to-android.sh
A script to generate android assets from a SVG file. Requires inkscape to resize and convert.
View svg-to-android.sh
#!/bin/bash
if [[ -z "$1" ]];
then
echo "No SVG file specified. Exiting."
exit -1
fi
ispng=$(file $1)
echo $ispng | grep -q SVG