$ git clone https://github.com/vim/vim.git
$ cd vim/src
$ sudo apt-get build-dep vim
# Use this command if you've compiled vim before
$ make distclean
$ make clean
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
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
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
| sudo a2endmod ssl | |
| sudo a2endmod rewrite | |
| sudo a2endsite my-site.conf |
You need to add the Git Maintainers repository in order to get the latest Git version.
Please run these commands in order:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
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
| # Iniciar Wiremock | |
| docker run -d --name wiremock \ | |
| -p 9031:8080 \ | |
| -v $PWD/wiremock:/home/wiremock \ | |
| -u (id -u):(id -g) \ | |
| rodolpheche/wiremock \ | |
| --record-mappings --verbose | |
| # Create $PWD/wiremock folder and use the example structure to append mappings | |
| # https://github.com/rodolpheche/wiremock-docker/tree/master/samples/hello/stubs |
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
| FROM php:7.4-cli | |
| RUN pecl install xdebug | |
| RUN docker-php-ext-enable xdebug | |
| RUN apt-get update | |
| RUN apt update | |
| RUN apt autoremove -y |
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
| <?php | |
| return [ | |
| '*' => [ | |
| 'path' => app_path('Models'), | |
| 'namespace' => 'App\Models', | |
| 'soft_deletes' => true, | |
| ], |
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://leetcode.com/problems/remove-element/description/?envType=study-plan-v2&id=top-interview-150 | |
| */ | |
| function removeElement(nums: number[], val: number): number { | |
| /* | |
| I1: nums = [l(k(3)), 2, 2, 3], val = 3 | |
| I2: nums = [l(2), k(2), 2, 3], val = 3 | |
| I3: nums = [2, l(2), k(2), 3], val = 3 | |
| I4: nums = [2, 2, l(3), k(3)], val = 3 | |
| */ |
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 plusOne(digits: number[]): number[] { | |
| let carry = 1; | |
| for (let i = digits.length - 1; i >= 0; i--) { | |
| if (carry === 0) { | |
| return digits; | |
| } | |
| const sum = digits[i] + carry; |