This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun MaybeToSingle() : Single<DownloadStatus> { | |
return getDownloadQueueItem(videoId) // Maybe<DownloadQueueItem> | |
.map { it.getDownloadServiceStatus() } // Single<Single<DownloadStatus>> | |
.switchIfEmpty( Single.just(Single.just(NOT_DOWNLOADING)) ) // Single<Single<DownloadStatus>> | |
.flatMap { it } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-03-18 19:56:36.495 16523-16523/com.skillshare.Skillshare.dev D/Downloads: Enqueuing 40939085: , 3408775, 3403609, 3403610, 3395526, 3395527, 3395528, 3403611, 3395530 | |
2020-03-18 19:56:36.495 16523-16523/com.skillshare.Skillshare.dev D/Downloads: Query for status of 13861 | |
2020-03-18 19:56:36.505 16523-16523/com.skillshare.Skillshare.dev D/Downloads: Download ID: 13861 / 13861 | |
2020-03-18 19:56:36.505 16523-16523/com.skillshare.Skillshare.dev D/Downloads: Download Status: 2 | |
2020-03-18 19:56:36.506 16523-16523/com.skillshare.Skillshare.dev D/Downloads: Session ID 3408775 has status of 2 | |
2020-03-18 19:56:36.506 16523-16523/com.skillshare.Skillshare.dev D/Downloads: session 3408775 issue with state: 2 | |
2020-03-18 19:56:36.705 16523-16523/com.skillshare.Skillshare.dev D/Downloads: delete Course: 40939085 | |
2020-03-18 19:56:36.705 16523-16523/com.skillshare.Skillshare.dev D/Downloads: Cancel downloads for course: 40939085, true. | |
2020-03-18 19:56:36.705 16523-16523/com.skillshare.Skillshare.dev D/Downloads: Cancel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- CLASSES QUERY : 4791 -- | |
SELECT | |
COUNT(*) | |
FROM | |
ss_parent_classes pc | |
LEFT JOIN | |
(SELECT | |
parenttag.parent_class_id, | |
COUNT(*) as matching_tags | |
FROM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Mac / Linux ## | |
> git config --global core.excludesfile ~/.gitignore_global | |
## Windows ## | |
> git config --global core.excludesfile %USERPROFILE%\.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_ID=CScuBJa9tUMXPqzbCScuBJa9tUMXPqzbCScuBJa9tUMXPqzb | |
MASTER_KEY=BJa9tUMXPqzBJa9tUMXPqzBJa9tUMXPqz | |
MONGODB_URI=mongodb://heroku_k1llf9l5:s4k11433sh40pvmofu5cm8um8b@ds153015.mlab.com:53015/heroku_k1llf9l5 | |
SERVER_URL=http://kc-sample-app.herokuapp.com/parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ViewA { | |
protected ImageView mImageView; | |
public void ViewA() { | |
initView(); | |
} | |
public void initView() { | |
inflateView(R.layout.my_view); | |
mImageView = (ImageView) findViewById(R.id.image); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Slide { | |
private String title; | |
private String text; | |
public class Builder { | |
Slide slide; | |
public Builder(String type) { | |
if ("ICON".equals(type)) { | |
slide = new IconSlide(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list | |
xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<bitmap | |
android:src="@drawable/logo_black" | |
android:tint="@color/app.accent.dark"/> | |
</item> | |
<item> | |
<rotate |