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 com.dobabci.android.util | |
import android.app.Activity | |
import android.content.Context | |
import android.graphics.Rect | |
import android.view.View | |
import android.view.ViewTreeObserver | |
import android.view.Window | |
import android.view.inputmethod.InputMethodManager |
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
import android.support.v7.widget.RecyclerView | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import java.util.* | |
class ${NAME} : RecyclerView.Adapter<${Model}Adapter.ViewHolder>() { |
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 com.westwingnow.android.base | |
import java.lang.reflect.Method | |
import java.lang.reflect.Modifier | |
import java.util.* | |
object StateDiffUtil { | |
private val COMPARABLE_PACKAGES = listOf( | |
"java.lang", |
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
Last login: Sat Dec 15 20:13:38 on ttys000 | |
~ | |
➜ node | |
> function* gf() { | |
... let a = yield 1; | |
... console.log('a:', a); | |
... let b = yield 2; | |
... console.log('b:', b); | |
... return 3; |
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
{ | |
"data": { | |
"__schema": { | |
"queryType": { | |
"name": "Query", | |
"description": null | |
}, | |
"mutationType": { | |
"name": "Mutation", | |
"description": null |
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
[{"category_id":1,"nearby_salons_total":0,"cat_name":"Fryzjer"},{"category_id":2,"nearby_salons_total":0,"cat_name":"Kosmetyczka"},{"category_id":3,"nearby_salons_total":0,"cat_name":"Paznokcie"},{"category_id":4,"nearby_salons_total":0,"cat_name":"Depilacja"},{"category_id":5,"nearby_salons_total":0,"cat_name":"Medycyna estetyczna"},{"category_id":6,"nearby_salons_total":0,"cat_name":"Spa i masa\u017c"},{"category_id":7,"nearby_salons_total":0,"cat_name":"Inne"}] |
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 com.wojtekmalek.expenseslog.ui.paragon | |
import android.Manifest | |
import android.annotation.SuppressLint | |
import android.content.Context | |
import android.content.Intent | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.support.v7.widget.LinearLayoutManager | |
import com.mcxiaoke.koi.ext.toast |
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
stack.prefWidthProperty().bind(anchorPane.widthProperty()); |
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
@Module | |
public abstract class MainActivityModule { | |
private static String BASE_URL = "https://api.instagram.com/v1/"; | |
@MainActivityScope | |
@Provides | |
static Retrofit providesRetrofit() { | |
return new Retrofit.Builder() | |
.baseUrl(BASE_URL) |
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 MainActivityView @Inject constructor() : PresentedActivityView<MainActivityPresenter>() { | |
@LayoutRes override val layoutResId = R.layout.activity_main | |
val slideShowImage: ImageView by bindView(R.id.slideShowImage) | |
override fun onViewsBound() { | |
TNImageView().makeRotatableScalable(slideShowImage) | |
} | |
} |