Skip to content

Commit 61a3f80

Browse files
author
Martin Øinæs Myrseth
committed
Inital import of tuple
0 parents  commit 61a3f80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4025
-0
lines changed

.ackrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--type-set
2+
coffee=.coffee
3+
--ignore-dir=.git
4+
--ignore-dir=_build
5+
--ignore-dir=generated
6+
--ignore-dir=node_modules
7+
--ignore-dir=cache

.ctags

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--exclude=.git
2+
--exclude=node_modules
3+
--exclude=__pycache__
4+
5+
--languages=-javascript,sql
6+
7+
--langdef=coffee
8+
--langmap=coffee:.coffee
9+
--regex-coffee=/(^|=[[:space:]])*class[[:space:]]([A-Za-z]+\.)*([A-Za-z]+)([[:space:]]extends[[:space:]][A-Za-z.]+)?$/\3/c,class/
10+
--regex-coffee=/^[[:space:]]*(module\.)?(exports\.)?@?([A-Za-z.]+):.*[-=]>.*$/\3/m,method/
11+
--regex-coffee=/^[[:space:]]*(module\.)?(exports\.)?([A-Za-z.]+)[[:space:]]+=.*[-=]>.*$/\3/f,function/
12+
--regex-coffee=/^[[:space:]]*([A-Za-z.]+)[[:space:]]+=[^->\n]*$/\1/v,variable/
13+
--regex-coffee=/^[[:space:]]*@([A-Za-z.]+)[[:space:]]+=[^->\n]*$/\1/f,field/
14+
--regex-coffee=/^[[:space:]]*@([A-Za-z.]+):[^->\n]*$/\1/f,staticField/
15+
--regex-coffee=/^[[:space:]]*([A-Za-z.]+):[^->\n]*$/\1/f,field/
16+
--regex-coffee=/(constructor:[[:space:]]\()@([A-Za-z.]+)/\2/f,field/
17+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){0}/\3/f,field/
18+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){1}/\3/f,field/
19+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){2}/\3/f,field/
20+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){3}/\3/f,field/
21+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){4}/\3/f,field/
22+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){5}/\3/f,field/
23+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){6}/\3/f,field/
24+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){7}/\3/f,field/
25+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){8}/\3/f,field/
26+
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){9}/\3/f,field/
27+
28+
--langdef=js
29+
--langmap=js:.js
30+
--langmap=js:+.jsx
31+
--regex-js=/[ \t.]([A-Z][A-Z0-9._$]+)[ \t]*[=:][ \t]*([0-9"'\[\{]|null)/\1/n,constant/
32+
--regex-js=/\.([A-Za-z0-9._$]+)[ \t]*=[ \t]*\{/\1/o,object/
33+
--regex-js=/['"]*([A-Za-z0-9_$]+)['"]*[ \t]*:[ \t]*\{/\1/o,object/
34+
--regex-js=/([A-Za-z0-9._$]+)\[["']([A-Za-z0-9_$]+)["']\][ \t]*=[ \t]*\{/\1\.\2/o,object/
35+
--regex-js=/([A-Za-z0-9._$]+)[ \t]*=[ \t]*\(function\(\)/\1/c,class/
36+
--regex-js=/['"]*([A-Za-z0-9_$]+)['"]*:[ \t]*\(function\(\)/\1/c,class/
37+
--regex-js=/class[ \t]+([A-Za-z0-9._$]+)[ \t]*/\1/c,class/
38+
--regex-js=/([A-Za-z$][A-Za-z0-9_$()]+)[ \t]*=[ \t]*[Rr]eact.createClass[ \t]*\(/\1/c,class/
39+
--regex-js=/([A-Z][A-Za-z0-9_$]+)[ \t]*=[ \t]*[A-Za-z0-9_$]*[ \t]*[{(]/\1/c,class/
40+
--regex-js=/([A-Z][A-Za-z0-9_$]+)[ \t]*:[ \t]*[A-Za-z0-9_$]*[ \t]*[{(]/\1/c,class/
41+
--regex-js=/([A-Za-z$][A-Za-z0-9_$]+)[ \t]*=[ \t]*function[ \t]*\(/\1/f,function/
42+
--regex-js=/(function)*[ \t]*([A-Za-z$_][A-Za-z0-9_$]+)[ \t]*\([^)]*\)[ \t]*\{/\2/f,function/
43+
--regex-js=/['"]*([A-Za-z$][A-Za-z0-9_$]+)['"]*:[ \t]*function[ \t]*\(/\1/m,method/
44+
--regex-js=/([A-Za-z0-9_$]+)\[["']([A-Za-z0-9_$]+)["']\][ \t]*=[ \t]*function[ \t]*\(/\2/m,method/

.gitconfig

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# vim: ft=gitconfig
2+
3+
[core]
4+
editor = vim
5+
excludesfile = ~/.gitignore
6+
7+
[rerere]
8+
enabled = true
9+
10+
[init]
11+
templatedir = ~/.gittemplate
12+
13+
[color]
14+
diff = auto
15+
status = auto
16+
branch = auto
17+
18+
[color "branch"]
19+
current = yellow reverse
20+
local = yellow
21+
remote = green
22+
23+
[color "diff"]
24+
meta = yellow bold
25+
frag = magenta bold
26+
old = red bold
27+
new = green bold
28+
29+
[color "status"]
30+
added = yellow
31+
changed = green
32+
untracked = cyan
33+
34+
[merge]
35+
tool = vimdiff
36+
37+
[alias]
38+
ap = add -p
39+
au = add -u
40+
dfs = diff --stat
41+
dh = diff HEAD
42+
dhs = diff HEAD --stat
43+
ds = diff --staged
44+
dss = diff --staged --stat
45+
co = checkout
46+
ci = commit -v
47+
cia = commit -v --amend
48+
st = status -sb
49+
sm = submodule
50+
ss = show --stat
51+
br = branch -vv
52+
bra = branch -avv
53+
ls = !git --no-pager log --pretty=format:\"%C(green)%h %Creset%s%C(yellow)%d %Creset%C(cyan)<%ae>%Creset\" --graph -20
54+
lsa = log --pretty=format:\"%C(green)%h %Creset%s%C(yellow)%d %Creset%C(cyan)<%ae>%Creset\" --graph -20 --all
55+
lg = log --pretty=format:\"%C(green)%h %C(blue)%ad %Creset%s%C(yellow)%d %Creset%C(cyan)<%an (%ae)>%Creset\" --graph --date=short
56+
lga = log --pretty=format:\"%C(green)%h %C(blue)%ad %Creset%s%C(yellow)%d %Creset%C(cyan)<%an (%ae)>%Creset\" --graph --date=short --all
57+
ff = merge --ff-only @{u}
58+
up = remote update
59+
rup = rebase @{u}
60+
rank = shortlog -s -n --no-merges
61+
desc = describe
62+
track = !git branch --set-upstream $(git for-each-ref --format=\"%(refname:short)\" $(git symbolic-ref HEAD))
63+
fixup = commit --amend -C HEAD
64+
save = !git add -u && git commit -m \"WIP: $(git show -q --oneline HEAD)\"
65+
66+
[branch]
67+
autosetuprebase = remote
68+
69+
[push]
70+
default = upstream
71+
[user]
72+
name = Martin Øinæs Myrseth

.gitmodules

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[submodule ".vim/bundle/neobundle.vim"]
2+
path = .vim/bundle/neobundle.vim
3+
url = https://github.com/Shougo/neobundle.vim
4+
[submodule ".tmux/powerline"]
5+
path = .tmux/powerline
6+
url = git://github.com/erikw/tmux-powerline.git
7+
[submodule ".zsh/oh-my-zsh"]
8+
path = .zsh/oh-my-zsh
9+
url = https://github.com/robbyrussell/oh-my-zsh.git
10+
[submodule ".zsh/zsh-syntax-highlighting"]
11+
path = .zsh/zsh-syntax-highlighting
12+
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
13+
[submodule "apps/fzf"]
14+
path = apps/fzf
15+
url = https://github.com/junegunn/fzf.git

.gittemplate/hooks/ctags

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
exit 0 # Uncomment to enable ctags
3+
mkdir .git/tags_lock 2>/dev/null || exit 0
4+
trap 'rmdir .git/tags_lock; rm -f .git/tags.$$' EXIT
5+
6+
ctags --tag-relative -Rf.git/tags.$$ \
7+
--exclude=.git \
8+
--exclude=bower_components \
9+
--exclude=node_modules \
10+
--exclude=__pycache__ \
11+
--exclude=tests/data \
12+
--languages=-sql
13+
14+
mv .git/tags.$$ .git/tags

.gittemplate/hooks/post-checkout

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
.git/hooks/ctags >/dev/null 2>&1 &

.gittemplate/hooks/post-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
.git/hooks/ctags >/dev/null 2>&1 &

.gittemplate/hooks/post-merge

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
.git/hooks/ctags >/dev/null 2>&1 &

.gittemplate/hooks/post-rewrite

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
case "$1" in
3+
rebase) exec .git/hooks/post-merge ;;
4+
esac

.gittemplate/hooks/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
if !(git config user.name &> /dev/null && git config user.email &> /dev/null); then
3+
echo "Please setup your repository with a user.name and user.email" >&2
4+
exit 1
5+
fi

0 commit comments

Comments
 (0)