duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| package im.ene.lab.whatever.api; | |
| import com.squareup.okhttp.OkHttpClient; | |
| import retrofit.Call; | |
| import retrofit.GsonConverterFactory; | |
| import retrofit.Retrofit; | |
| import retrofit.http.GET; | |
| package im.ene.lab.android.widgets; | |
| import android.content.Context; | |
| import android.graphics.PorterDuff; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Build; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.design.widget.TabLayout; | |
| import android.util.AttributeSet; |
| allprojects { | |
| repositories { | |
| jcenter() | |
| maven { | |
| url "https://s3.amazonaws.com/repo.commonsware.com" | |
| } | |
| maven { | |
| url "http://amateras.sourceforge.jp/mvn" | |
| } | |
| mavenCentral() |
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Copyright 2016 Google Inc. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <color name="red_50">#fde0dc</color> | |
| <color name="red_100">#f9bdbb</color> | |
| <color name="red_200">#f69988</color> | |
| <color name="red_300">#f36c60</color> | |
| <color name="red_400">#e84e40</color> | |
| <color name="red_500">#e51c23</color> | |
| <color name="red_600">#dd191d</color> | |
| <color name="red_700">#d01716</color> |
| /* | |
| * Copyright 2016 Nam Nguyen, nam@ene.im | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| public Observable<FilesWrapper> download(List<Thing> things) { | |
| return Observable.from(things) | |
| .flatMap(thing -> { | |
| File file = new File(getExternalCacheDir() + File.separator + thing.getName()); | |
| if (file.exists()) { | |
| return Observable.just(file); | |
| } | |
| Request request = new Request.Builder().url(thing.getUrl()).build(); |