Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jeffawang
jeffawang / json.hs
Created January 27, 2022 18:29 — forked from jakewilson/json.hs
json parser
import System.Environment
import Control.Applicative((<|>))
import Data.Char
( isAscii
, isDigit
)
import Data.Map
import Text.ParserCombinators.ReadP
@jeffawang
jeffawang / git_basics.md
Created February 22, 2017 21:00
Some of the git commands I use a lot
  • fetch
    • update your local copy of the remote branch
    • ex: git fetch origin master
  • pull
    • fetch and merge
    • ex: git pull
  • add
    • add a file to be committed
  • ex: git add -A
set-option -g default-command "reattach-to-user-namespace -l zsh"
setw -g mode-keys vi
unbind [
bind q copy-mode
bind Q display-panes
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
set -g history-limit 50000