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
class PostDetailViewModel(private val postsOperations: PostsOperations): ViewModel() { | |
private val _postDetailUiModel = | |
MutableLiveData<Lce<PostDetailUiModel>>() | |
val postDetailUiModel: LiveData<Lce<PostDetailUiModel>> | |
get() = _postDetailUiModel | |
private var disposable: Disposable? = null | |
fun getPostDetail(postUiModel: PostUiModel) { |
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
//v4 | |
{ | |
"id": "5c8a6ff6ea34250e4c73ba17", | |
"type": 3, | |
"kind": 1, | |
"origin": 6004586, | |
"recipient": 2100078, | |
"payload": "Ещё актуально?", | |
"media": [], | |
"created": 1552576502, |
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
package classifieds.yalla.features.ad.page.widget | |
import android.content.Context | |
import android.graphics.Canvas | |
import android.graphics.drawable.ShapeDrawable | |
import android.graphics.drawable.shapes.OvalShape | |
import android.support.v4.content.ContextCompat | |
import android.text.Layout | |
import android.text.TextUtils | |
import android.view.Gravity |
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 Pager<I, O> { | |
private static final Observable FINISH_SEQUENCE = Observable.never(); | |
private PublishSubject<Observable<I>> pages; | |
private Observable<I> nextPage = finish(); | |
private Subscription subscription = Subscriptions.empty(); | |
private final PagingFunction<I> pagingFunction; | |
private final Func1<I, O> pageTransformer; |
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"?> | |
<!-- | |
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 |
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
package dagger2_code_generation_issue; | |
import dagger.MembersInjector; | |
import javax.annotation.Generated; | |
import javax.inject.Provider; | |
@Generated("dagger.internal.codegen.ComponentProcessor") | |
public final class Child1_MembersInjector implements MembersInjector<Child1> { | |
private final MembersInjector<Parent> supertypeInjector; | |
private final Provider<ChildMember> childMemberProvider; |
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
package dagger2_code_generation_issue; | |
import dagger.Subcomponent; | |
import ua.com.uklontaxi.lib.dagger.di.PerActivity; | |
@PerActivity @Subcomponent public interface ActivityScopeComponent { | |
void inject(Child1 child1); | |
} |
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"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
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
#!/bin/bash | |
# How to install: | |
# exo-open "http://developer.android.com/sdk/index.html#Other" | |
# for linux users | |
# sudo apt-get install libav-tools imagemagick | |
# for mac users | |
# brew install libav | |
# wget https://gist.githubusercontent.com/lorenzos/e8a97c1992cddf9c1142/raw/android-screen-to-gif.sh | |
# chmod a+x android-screen-to-gif.sh |
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
export EDITOR='vim' | |
export JAVA8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk | |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management |
NewerOlder