Skip to content

Instantly share code, notes, and snippets.

View Amezdrin's full-sized avatar
🤘

Artem Mezdrin Amezdrin

🤘
View GitHub Profile
@Amezdrin
Amezdrin / Apple_mobile_device_types.txt
Created January 15, 2019 04:01 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
@Amezdrin
Amezdrin / RestServiceMockUtils.java
Created December 4, 2017 06:47 — forked from riggaroo/ RestServiceMockUtils.java
Mocking API Responses using a Retrofit Client in Android
public class RestServiceMockUtils {
public static String convertStreamToString(InputStream is) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
sb.append(line).append("\n");
}
reader.close();