Skip to content

Instantly share code, notes, and snippets.

@whalemare
whalemare / remote_url.md
Created April 15, 2019 13:42 — forked from hofnerb/remote_url.md
git remote set-url

Review and Change Remote URL

git remote -v
# View existing remotes

git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL

git remote add origin https://github.com/user/repo2.git
@whalemare
whalemare / IxKotlin.kt
Created February 14, 2019 02:59 — forked from acrylic-origami/IxKotlin.kt
Rx operator implementations from the five major classes outlined in https://lam.io/writing/ReactiveX using Kotlin reactive channels
import kotlin.collections.*
import org.reactivestreams.*
import kotlinx.coroutines.channels.*
import kotlinx.coroutines.reactive.*
import kotlinx.coroutines.*
import kotlin.coroutines.*
@ExperimentalCoroutinesApi
fun <T, U> Publisher<T>.debounce(timeout: Long, ctx: CoroutineContext) = GlobalScope.publish(ctx) {
var idx = 0;
@whalemare
whalemare / launch_sublime_from_terminal.markdown
Last active April 25, 2021 16:57 — forked from artero/launch_sublime_from_terminal.markdown
Запускаем Sublime Text из терминала Mac OS X

Быстро

  1. C помощью Finder ищем путь до нашего приложения /Applications/Sublime\ Text.app
  2. Открываем open ~/.bash_profile
  3. Добавляем к нашему полученному пути следующую строчку /Contents/SharedSupport/bin/subl
  4. Записываем alias alias sublime="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"