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
http | |
git config --global http.proxy "http://127.0.0.1:[your port]" | |
git config --global https.proxy "http://127.0.0.1:[your port]" | |
sock5: | |
git config --global http.proxy "socks5://127.0.0.1:[your port]" | |
git config --global https.proxy "socks5://127.0.0.1:[your port]" | |
unset(取消设置): | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy |
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
fun <T> Observable<T>.autoDispose(provider: ScopeProvider): ObservableSubscribeProxy<T> = | |
this.`as`(AutoDispose.autoDisposable(provider)) | |
fun <T> Observable<T>.autoDispose(owner: LifecycleOwner, untilEvent: Lifecycle.Event = Lifecycle.Event.ON_DESTROY): ObservableSubscribeProxy<T> = | |
this.`as`(AutoDispose.autoDisposable(AndroidLifecycleScopeProvider.from(owner, untilEvent))) | |
fun <T> Flowable<T>.autoDispose(provider: ScopeProvider): FlowableSubscribeProxy<T> = | |
this.`as`(AutoDispose.autoDisposable(provider)) | |
fun <T> Flowable<T>.autoDispose(owner: LifecycleOwner, untilEvent: Lifecycle.Event = Lifecycle.Event.ON_DESTROY): FlowableSubscribeProxy<T> = |