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
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "Please enter username." | |
else | |
USERNAME=$1 | |
PASSWD=$USERNAME | |
HOME=/home/$USERNAME | |
BIN_PATH=$HOME/bin |
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
--varibles | |
ctrl_alt = {"control", "alt"} | |
ctrl_cmd = {"control", "cmd"} | |
alt_cmd = {"alt", "cmd"} | |
--reload | |
hs.hotkey.bind(ctrl_cmd, "R", function() | |
hs.reload() | |
hs.alert.show("Config loaded") | |
end) |
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
def selection_sort(arr): | |
for i in range(len(arr)): | |
index = i | |
for j in range(i + 1, len(arr)): | |
if arr[j] < arr[index]: | |
index = j | |
arr[i], arr[index] = arr[index], arr[i] | |
return arr | |
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" vundle settings | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'bling/vim-airline' | |
Plugin 'scrooloose/nerdtree' |