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
| // coc-tsserver | |
| // coc-eslint | |
| // coc-prettier | |
| // coc-angular | |
| // coc-json | |
| // coc-explorer | |
| { | |
| "explorer.width": 80, | |
| "explorer.icon.enableNerdfont": true, | |
| "explorer.previewAction.onHover": false, |
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
| " https://github.com/ThePrimeagen/.dotfiles/blob/master/nvim/.config/nvim/init.vim | |
| " https://github.com/garybernhardt/dotfiles/blob/main/.vimrc | |
| " https://gist.github.com/benawad/b768f5a5bbd92c8baabd363b7e79786f | |
| " https://github.com/moraisaugusto/another-dotfiles | |
| " https://github.com/rafi/vim-config | |
| " ctrl-0 = alt-back | |
| " ctrl-i = alt-forward | |
| " | |
| call plug#begin() |
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
| bind '"\e[A": history-search-backward' | |
| bind '"\e[B": history-search-forward' |
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
| { | |
| "$help": "https://aka.ms/terminal-documentation", | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": [ | |
| { | |
| "command": { | |
| "action": "copy", | |
| "singleLine": false | |
| }, | |
| "keys": "ctrl+c" |
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
| { | |
| "final_space": true, | |
| "console_title": true, | |
| "console_title_style": "folder", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "horizontal_offset": 0, | |
| "vertical_offset": 0, |
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
| // before starting: npm i -D ngx-wallaby-jest | |
| const ngxWallabyJest = require('ngx-wallaby-jest'); | |
| module.exports = function(wallaby) { | |
| return { | |
| files: [ | |
| 'src/**/*.+(ts|html|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)', | |
| 'tsconfig.json', | |
| 'jest.config.js', | |
| 'tsconfig.spec.json', |
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 collectionSum = (collection) => { | |
| const iterator = collection.iterator(); | |
| let eachIteration; | |
| let sum = 0; | |
| while ((eachIteration = iterator(), !eachIteration.done)) { | |
| sum += eachIteration.value; | |
| } | |
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
| <div *ngIf="product$ | async as products"> | |
| <ul> | |
| <li *ngFor="let product of products"> | |
| {{ product.name }} | |
| </li> | |
| </ul> | |
| </div> |
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 deepFreeze(value) { | |
| if (Array.isArray(value)) { | |
| for (const element of value) { | |
| deepFreeze(element); | |
| } | |
| Object.freeze(value); | |
| } else if (typeof value === 'object' && value !== null) { | |
| for (const v of Object.values(value)) { | |
| deepFreeze(v); | |
| } |
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 { Pipe, PipeTransform } from '@angular/core'; | |
| /* | |
| * Strips HTML | |
| * Takes an input parameter HTML. | |
| * Usage: | |
| * content | striphtml | |
| * Example: | |
| * <p [innerHTML]="content | striphtml"></p> | |
| */ | |
| @Pipe({ |