Skip to content

Instantly share code, notes, and snippets.

View alexsotocx's full-sized avatar

Alexander Soto alexsotocx

View GitHub Profile
@alexsotocx
alexsotocx / problem.ts
Last active November 18, 2021 11:39
Coding
/*
Create a function to simulate change directory(cd) in your terminal, we want to find
in which folder you end up.
This function will automate the “$cd” command, so every item in the array is a cd command
Given a an array of paths where you will use cd path[i], find the result folder
Input:
paths string[], where paths[i] is a valid path.
paths[0] = will be your start folder, so it will be a valid path directory.
call plug#begin("~/.vim/plugged")
" Theme
Plug 'dracula/vim'
" Language Client
Plug 'neoclide/coc.nvim', {'branch': 'release'}
let g:coc_global_extensions = ['coc-emmet', 'coc-css', 'coc-python', 'coc-go', 'coc-java', 'coc-html', 'coc-json', 'coc-prettier', 'coc-tsserver']
" TypeScript Highlighting
Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'