Skip to content

Instantly share code, notes, and snippets.

class Context
interface Module1 {
val dep1: () -> Int
val dep2: String
data class Deps(
val context: Context,
)
class Context
interface Module1 {
val dep1: () -> Int
val dep2: String
data class Deps(
val context: Context,
)
class Context
interface Module1 {
val dep1: () -> Int
val dep2: String
interface Deps {
val context: Context
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import rx.Observable;
import rx.Subscriber;
import rx.functions.Action1;
import rx.subscriptions.Subscriptions;
@httpdispatch
httpdispatch / CursorWithDelete.java
Created April 23, 2014 10:39
Wrapper around android android.database.Cursor which allows to skip number of items by the their position
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import android.database.AbstractCursor;
import android.database.Cursor;
/**
* Extended solution of U Avalos taken from here
* http://stackoverflow.com/a/18139147/527759
/*
* HorizontalListView.java v1.5
*
*
* The MIT License
* Copyright (c) 2011 Paul Soucy (paul@dev-smart.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights