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
| call plug#begin('~/.vim/plugged') | |
| Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} | |
| let g:coc_global_extensions = ['coc-tslint-plugin', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-yank', 'coc-prettier'] | |
| Plug 'ianks/vim-tsx' | |
| Plug 'leafgarland/typescript-vim' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'ctrlpvim/ctrlp.vim' |
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 React, { PureComponent } from 'react'; | |
| class Img extends PureComponent { | |
| componentDidMount() { | |
| this.observer = new IntersectionObserver(entries => { | |
| entries.forEach(entry => { | |
| const { isIntersecting } = entry; | |
| if (isIntersecting) { | |
| this.element.src = this.props.src; |
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
Show hidden characters
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "caret_style": "solid", | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme-Palenight.tmTheme", | |
| "font_face": "Operator Mono Medium", | |
| "font_size": 12, | |
| "highlight_line": true, | |
| "ignored_packages": | |
| [ |
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 arProgression(a, n) { | |
| var result = 0; | |
| for (var i = 0; i < n; i++) { | |
| result += a + i; | |
| } | |
| return result; | |
| } | |
| //Output example | |
| console.log(arProgression(1, 10)); |