Skip to content

Instantly share code, notes, and snippets.

View remynguyen96's full-sized avatar
🌳
Plant Trees

Chau Nguyen remynguyen96

🌳
Plant Trees
  • Ho Chi Minh City
  • 11:38 (UTC +07:00)
View GitHub Profile
https://www.linkedin.com/ambry/?x-li-ambry-ep=AQLLpySkJ7tLdAAAAZ1oDMM1WDt4zpJOpKddgMdDqQXuqjmtUGzYEhRyG9Nyg92G4Y3KBnP6ou6Zu4-BBJ69L_TnY0JSeWuWV7CW9WPz2yZ_W84LJ-gSPTTjAgNgkbWKd68YUP34K3QtrjvXlUJnVuwJteVq19IJ1Kcwna7Fdn_dRk69FwYHHuIyFlogb6OfOiG6oZ7ps-EdfYjBT35etYqB692gL_jl0YKXUFJCmk5Gvs6VuT9HLUphBUcLvQTw7Vs1aDisWYXu6DruXQAwXQiUssZJ0bAuqQJwwhfsUiMs0meyKnVPBPS-34BCjl6Qs72qyU3Zws1rSD21kT8GZX38EVCMeiS9_e4HUk5B3pwSJETCAp6I5oaEZTMNrR_j83Q_Wns2AP5bvO5qKq_qVtcTBWrEgp2fj0bIVa_vpZFv5W4bcgp9JHfARLU4-basIB8U-YRGk-z-_9ZXnB0aWbZdmyRZAaBIV1w2876u-Vk2z8r7T-q5bYs0jwdI5NamjaSj6cJ0CUP_-pE-dgDPSW8ddv1hDgIhcvCwilLTAMJvddISTdn8RHi8HAiCcqa491XunyMRsX971z9hXF2HdIqy
https://restful-booker.herokuapp.com/apidoc/index.html
@remynguyen96
remynguyen96 / caeser_encrypt.js
Created February 8, 2021 09:09
Basic encrypt and decrypt characters.
const encrypt = (text, k = 2) => {
const alphabet = [
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
];
let newText = '';
for (let char of text.toUpperCase()) {
// ASCII => A = 65 (https://www.w3schools.com/charsets/ref_html_ascii.asp);
const index = char.charCodeAt() - 65;
@remynguyen96
remynguyen96 / plugins.vim
Created November 12, 2020 15:17
Plugins (~/.config/nvim/vim-plug/plugins.vim)
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'tpope/vim-fugitive'
Plug 'zivyangll/git-blame.vim'
" Making stuff
Plug 'easymotion/vim-easymotion'
@remynguyen96
remynguyen96 / theme.vim
Created November 12, 2020 15:16
Theme configuration (~/.config/nvim/theme.vim)
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup
set nowritebackup
set noswapfile
set history=50
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set laststatus=2 " Always display the status line
@remynguyen96
remynguyen96 / coc.vim
Last active November 12, 2020 15:19
Coc nvim (~/.config/nvim/coc.vim)
" Leader
"let mapleader = " "
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
" delays and poor user experience.
set updatetime=300
" always show signcolumns
set signcolumn=yes
@remynguyen96
remynguyen96 / nerdtree_fzf.vim
Last active November 12, 2020 15:14
Nerdtree configuration (~/.config/nvim/nerdtree_fzf.vim)
" NERD tree configuration
inoremap jk <ESC>
noremap <C-d> :NERDTreeToggle<CR>
nnoremap F :NERDTreeFind<CR>
nnoremap <S-h> :tabprevious<CR>
nnoremap <S-l> :tabnext<CR>
nnoremap <S-t> :tabnew<CR>
" press s key for opening to the right, i for opening to the bottom, enter for opening it in the current split
let g:NERDTreeWinSize=35
@remynguyen96
remynguyen96 / .init.vim
Created November 12, 2020 15:10
Initial neovim (~/.config/nvim/init.vim)
source $HOME/.config/nvim/vim-plug/plugins.vim
" Leader
let mapleader = " "
source $HOME/.config/nvim/theme.vim
source $HOME/.config/nvim/nerdtree_fzf.vim
source $HOME/.config/nvim/coc.vim
" Copy to clipboard
@remynguyen96
remynguyen96 / .zshrc
Created November 12, 2020 15:08
Zshrc configuration (~/.zshrc)
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/P800180/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@remynguyen96
remynguyen96 / .tmux.config
Created November 12, 2020 15:06
Tmux configuration. (~/.tmux.conf)
# C-b is not acceptable -- Vim uses it
set -g prefix C-a
bind C-a send-prefix
unbind C-b
# Quick reload
bind r source-file ~/.tmux.conf
# True colors mode
# Add truecolor support
@remynguyen96
remynguyen96 / cloudSettings
Last active March 16, 2021 12:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-29T00:15:29.344Z","extensionVersion":"v3.4.3"}