This file contains hidden or 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
| /* | |
| * Copyright (c) 2017 PlanGrid, Inc. All rights reserved. | |
| */ | |
| package com.plangrid.android.loaders.rx; | |
| import android.database.Cursor; | |
| import android.support.v4.app.LoaderManager; | |
| import android.support.v4.content.CursorLoader; |
This file contains hidden or 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
| import android.app.Service; | |
| import android.content.ComponentName; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.ServiceConnection; | |
| import android.os.Binder; | |
| import android.os.IBinder; | |
| import io.reactivex.Observable; |
This file contains hidden or 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
| /* | |
| * Copyright (c) 2017 PlanGrid, Inc. All rights reserved. | |
| */ | |
| package com.plangrid.android.dmodel.annotation; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| @Retention(RetentionPolicy.RUNTIME) |
This file contains hidden or 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
| /* | |
| * Copyright (c) 2017 PlanGrid, Inc. All rights reserved. | |
| */ | |
| package com.plangrid.android.dmodel.mapper; | |
| import android.database.Cursor; | |
| import rx.functions.Func1; |
This file contains hidden or 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
| FROM ubuntu:xenial | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| unzip \ | |
| sudo \ | |
| python \ | |
| python-setuptools \ | |
| python-dev \ | |
| build-essential |
This file contains hidden or 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
| import android.content.ContentResolver; | |
| import android.database.ContentObserver; | |
| import android.net.Uri; | |
| import android.os.Handler; | |
| import android.os.HandlerThread; | |
| import android.util.Pair; | |
| import java.util.UUID; | |
| import rx.Observable; |
This file contains hidden or 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
| # http://www.sqlite.org/download.html | |
| SQLITE_VERSION ?= 3200100 | |
| SQLITE_YEAR ?= 2017 | |
| SQLITE_BASENAME := sqlite-src-$(SQLITE_VERSION) | |
| # Complete URL sample: https://sqlite.org/2017/sqlite-3200100.zip | |
| SQLITE_URL := http://www.sqlite.org/$(SQLITE_YEAR)/$(SQLITE_BASENAME).zip | |
| CC = gcc |
This file contains hidden or 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
| cmake_minimum_required(VERSION 2.8) | |
| include(ExternalProject) | |
| ExternalProject_Add(sqlite-sources | |
| URL http://www.sqlite.org/2017/sqlite-src-3200100.zip | |
| PREFIX ${CMAKE_CURRENT_BINARY_DIR}/sqlite-sources | |
| CONFIGURE_COMMAND cd ../sqlite-sources && ./configure | |
| BUILD_COMMAND "" | |
| INSTALL_COMMAND "") |
This file contains hidden or 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
| docker run --rm wernight/cpuminer-multi:alpine cpuminer -a yescrypt -o stratum+tcp://yescrypt.us.hashrefinery.com:6233 -u 1MQpRBPmBW5fDW3sxpagmSYE9RWFxWLTDo -p BTC |
This file contains hidden or 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
| private typealias Update<T> = T.() -> Unit | |
| class DataUpdatesStaging<T> { | |
| private val updateBuffer: MutableList<Update<T>> = ArrayList() | |
| private val updateStream: BehaviorSubject<List<Update<T>>> = BehaviorSubject.create(updateBuffer) | |
| fun stageUpdate(update: Update<T>) { | |
| synchronized(updateBuffer) { | |
| updateBuffer.add(update) | |
| updateStream.onNext(updateBuffer) |