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
{ | |
"folke/flash.nvim", | |
event = "VeryLazy", | |
---@type Flash.Config | |
opts = {}, | |
keys = { | |
{ | |
"s", | |
mode = { "n", "x", "o" }, | |
function() |
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
function nvim_packer_restart() { | |
nvim "$@" | |
if [[ -e "$TMPDIR""packer_compile_at_start" ]]; then | |
nvim_packer_restart "$0" | |
fi | |
} | |
alias nvim='nvim_packer_restart' |
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
const onSubscribe = (fn) => stream => Rx.defer(() => { | |
fn(); | |
return stream; | |
}) | |
const logOnSubscribe = message => onSubscribe(() => console.log(message)); | |
Rx.interval(10e3).pipe( | |
switchMap(() => interval(200).pipe( | |
logOnSubscribe('subscribed to 200ms interval') |
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 _ from 'underscore'; | |
import { useState, useEffect } from 'react'; | |
import { isObservable } from 'rxjs'; | |
const useObservable = (observable, initial) => { | |
const [next, setNext] = useState(initial); | |
const [isComplete, setIsComplete] = useState(false); | |
const [error, setError] = useState(); | |
useEffect( |
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
// Use in tandem with Chrome Live Expressions to track values you're interested in. | |
// https://developers.google.com/web/updates/2018/08/devtools#watch) | |
window.showMe = | |
window.showMe || | |
(() => { | |
return window.watchMe || null; | |
}); | |
export const showMe = (key, value) => { |