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
<!-- view here: https://bl.ocks.org/stoptime/raw/c5f21762bb8cbf75492b43e165b64532/ --> | |
<!doctype html> | |
<html> | |
<head> | |
<title>JavaScript Generators and Spiral Matrices</title> | |
<style type="text/css"> | |
body { | |
background-color: black; | |
color: white; |
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
# CLI COLORED PROMPT | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1='\[\033[38;5;99m\]\u\[$(tput sgr0)\]\[\033[38;5;98m\]@\[$(tput sgr0)\]\[\033[38;5;97m\]\h\w\[$(tput sgr0)\]\[\033[38;5;15m\]\[$(tput sgr0)\]\[\033[38;5;172m\]$(parse_git_branch)\[$(tput sgr0)\] ' | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' |
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
if exists("did_load_filetypes") | |
finish | |
endif | |
augroup filetypedetect | |
au! BufNewFile,BufRead *.inc,*.module setf php | |
augroup END |