Wix dont support code snippets with sintax highlight, thats very bad. So, a workaround is use prism.js with HTML Snippets.
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 { | |
CallHandler, | |
ExecutionContext, | |
Injectable, | |
Logger, | |
NestInterceptor, | |
} from '@nestjs/common' | |
import { Observable } from 'rxjs' | |
import { tap } from 'rxjs/operators' | |
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 testingDoubleQuotes(){ | |
console.time('doublequotes') | |
for (let i = 0; i < 10000000; i++) { | |
const string1 = "String One" | |
} | |
console.timeEnd('doublequotes') | |
} | |
function testingSingleQuotes(){ | |
console.time('singlequotes') | |
for (let i = 0; i < 10000000; i++) { |
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
PO + Áreas | |
história: (Negocio) (2 meses) - escrito, estudado, priorizado | |
Eu gostaria de comer sucrilhos ou vender coelhos | |
PO + Áreas (Input do refinemanto) INVEST | |
AC (Negocio) - 3 semanas | |
Quando alguém pedir um coelho | |
e tiver coelhos disponiveis | |
entao vendemos o coelho |
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 { | |
ArgumentsHost, | |
Catch, | |
ExceptionFilter, | |
HttpException, | |
HttpStatus, | |
} from '@nestjs/common' | |
@Catch() |
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
+ or - allows control over the mapped type modifier (? or readonly). -? means must be all present, aka it removes optionality (?) e.g.: | |
type T = { | |
a: string | |
b?: string | |
} | |
// Note b is optional | |
const sameAsT: { [K in keyof T]: string } = { |
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
// subindo o neo4j local | |
// docker run \ ─╯ | |
// --name nome-que-vc-quiser-do-container \ | |
// -p 7474:7474 -p 7687:7687 \ | |
// -d \ | |
// -v $HOME/uma-folder-sua-pra-nao-perder-dados-do-container/data:/data \ | |
// -v $HOME/uma-folder-sua-pra-nao-perder-dados-do-container/logs:/logs \ | |
// -v $HOME/uma-folder-sua-pra-nao-perder-dados-do-container/import:/var/lib/neo4j/import \ | |
// -v $HOME/uma-folder-sua-pra-nao-perder-dados-do-container/plugins:/plugins \ | |
// --env NEO4J_AUTH=neo4j/test \ |
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
Note: this assumes you are using ZSH shell. | |
## Installation | |
Install [asdf](https://github.com/asdf-vm/asdf): | |
``` | |
$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0 | |
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc | |
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc |
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
{ | |
"editor.fontFamily": "Cascadia Code, Roboto Mono, Fira Code, Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"maven.terminal.useJavaHome": true, | |
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
"files.exclude": { | |
"**/.classpath": true, | |
"**/.project": true, | |
"**/.settings": true, | |
"**/.factorypath": true, |
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
" Specify a directory for plugins | |
" - For Neovim: stdpath('data') . '/plugged' | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.dotfiles/.vim/plugged') | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' | |
" Think of sensible.vim as one step above 'nocompatible' mode: a universal set of defaults that (hopefully) everyone can agree on. | |
Plug 'tpope/vim-sensible' |