Skip to content

Instantly share code, notes, and snippets.

I love my pet projects.

Volodymyr jordan1997

I love my pet projects.
Block or report user

Report or block jordan1997

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BasePresenter.kt
* The method add default method [handleError] for handle onError evert from the ObservableSource,
* and add disposable from this subscribe to CompositeDisposable [compositeDisposable]
* @param onNext - the function you have designed to accept emissions from the ObservableSource
protected fun <T> Observable<T>.safeSubscribe(onNext: (T) -> Unit, onError: (Throwable) -> Unit = ::handleError) {
this.subscribe(onNext, onError)
View deploy article to DO
scp Desktop/web/src/main/resources/* root@
scp -r src/main/resources/blog root@
### deploy
gradle bootJar & ssh "mkdir -p /root/backend/build/libs/" & scp docker-compose.yml & scp Dockerfile & scp build/libs/backend-0.0.1-SNAPSHOT.jar & ssh "cd backend && docker-compose up -d"
You can’t perform that action at this time.