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 main | |
import ( | |
"fmt" | |
"time" | |
) | |
func printNum(waitCh, pauseCh chan int, start, end int) { | |
fmt.Println("Inside print") | |
<-waitCh |
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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[\033[00m\]\[\033[01;34m\]\W\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\W$(parse_git_branch)' | |
fi | |
# If this is an xterm set the title to user@host:dir | |
case "$TERM" in |
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 ts=2 | |
set sw=2 | |
set expandtab | |
set hls | |
set autoindent | |
set smartindent | |
filetype plugin indent on | |
set autoread | |
set ruler | |
syntax enable |