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
filetype off | |
syntax off | |
"~~~~~~~~~ Skip initialization for vim-tiny or vim-small. | |
if 0 | endif | |
if &compatible | |
set nocompatible | |
endif |
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
{ | |
"workbench.startupEditor": "none", | |
"extensions.ignoreRecommendations": true, | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Consolas", | |
// "editor.fontSize": 17, | |
// "editor.fontFamily": "Ubuntu Mono Regular", | |
"editor.lineHeight": 20, | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, |
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
" path: home\appdata\local\nvim\ginit.vim | |
filetype off | |
syntax off | |
if &compatible | |
set nocompatible | |
endif | |
" Add the dein installation directory into runtimepath | |
set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim |
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
/* | |
* Set up your Git configuration | |
*/ | |
git config --global user.email "you@yourdomain.com" | |
git config --global user.name "Your Name" | |
git config --global core.editor "nano" | |
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
//DFS | |
public boolean hasPathDFS(int source, int destination) { | |
HashSet<Integer> visited = new HashSet<>(); | |
return hasPathDFS(getNode(source), getNode(destination), visited); | |
} | |
private boolean hasPathDFS(Node source, Node destination, HashSet<Integer> visited) { | |
if (visited.contains(source.id)) { | |
return false; | |
} |
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
package practice; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardOpenOption; | |
import java.util.HashMap; | |
import java.util.Map; |
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
filetype off | |
syntax off | |
"~~~~~~~~~ Skip initialization for vim-tiny or vim-small. | |
if 0 | endif | |
if &compatible | |
set nocompatible | |
endif |
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
# Tell ls to be colourful | |
export CLICOLOR=1 | |
export LSCOLORS=Exfxcxdxbxegedabagacad | |
# Tell grep to highlight matches | |
export GREP_OPTIONS='--color=auto' | |
export TERM="xterm-color" | |
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ ' |
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
Vim Keybindings | |
-------------------------- | |
'atom-text-editor.vim-mode:not(.insert-mode)': | |
'ctrl-h': 'pane:show-previous-item' | |
'ctrl-j': 'window:focus-pane-below' | |
'ctrl-k': 'window:focus-pane-above' | |
'ctrl-l': 'pane:show-next-item' | |
'ctrl-w w': 'core:close' | |
'space space': 'core:save' |
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
/* ~~~~~~~~~~ USER PREFERENCES ~~~~~~~~~~~~ */ | |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Mariana.tmTheme", | |
"font_face": "Menlo", | |
"font_size": 13, | |
"tab_size": 2, | |
"ignored_packages": | |
[ | |
], | |
"theme": "Default.sublime-theme", |
NewerOlder