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
import { EditorState, Modifier, Entity, SelectionState } from 'draft-js' | |
import linkifyIt from 'linkify-it' | |
import tlds from 'tlds' | |
const linkify = linkifyIt() | |
linkify.tlds(tlds) | |
const linkifyEditorState = (editorState) => { | |
const contentState = editorState.getCurrentContent() |
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
# tag target commits as demo-start, demo-end | |
# move to the start of your presentration with `git checkout demo-start` | |
# use to `git next`, `git prev` to jump between "slides" | |
git config --global alias.next '!git checkout `git rev-list HEAD..demo-end | tail -1`' | |
git config --global alias.prev 'checkout HEAD^' |
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
function wv | |
curl -s $argv | unfluff | jq -r '.title, .text' | xargs -0 echo '#' | nd | |
end |