Skip to content

Commit

Permalink
Inital import of tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Øinæs Myrseth committed Feb 10, 2016
0 parents commit 61a3f80
Show file tree
Hide file tree
Showing 70 changed files with 4,025 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--type-set
coffee=.coffee
--ignore-dir=.git
--ignore-dir=_build
--ignore-dir=generated
--ignore-dir=node_modules
--ignore-dir=cache
44 changes: 44 additions & 0 deletions .ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
--exclude=.git
--exclude=node_modules
--exclude=__pycache__

--languages=-javascript,sql

--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/(^|=[[:space:]])*class[[:space:]]([A-Za-z]+\.)*([A-Za-z]+)([[:space:]]extends[[:space:]][A-Za-z.]+)?$/\3/c,class/
--regex-coffee=/^[[:space:]]*(module\.)?(exports\.)?@?([A-Za-z.]+):.*[-=]>.*$/\3/m,method/
--regex-coffee=/^[[:space:]]*(module\.)?(exports\.)?([A-Za-z.]+)[[:space:]]+=.*[-=]>.*$/\3/f,function/
--regex-coffee=/^[[:space:]]*([A-Za-z.]+)[[:space:]]+=[^->\n]*$/\1/v,variable/
--regex-coffee=/^[[:space:]]*@([A-Za-z.]+)[[:space:]]+=[^->\n]*$/\1/f,field/
--regex-coffee=/^[[:space:]]*@([A-Za-z.]+):[^->\n]*$/\1/f,staticField/
--regex-coffee=/^[[:space:]]*([A-Za-z.]+):[^->\n]*$/\1/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@([A-Za-z.]+)/\2/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){0}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){1}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){2}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){3}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){4}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){5}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){6}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){7}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){8}/\3/f,field/
--regex-coffee=/(constructor:[[:space:]]\()@[A-Za-z.]+(,[[:space:]]@([A-Za-z.]+)){9}/\3/f,field/

--langdef=js
--langmap=js:.js
--langmap=js:+.jsx
--regex-js=/[ \t.]([A-Z][A-Z0-9._$]+)[ \t]*[=:][ \t]*([0-9"'\[\{]|null)/\1/n,constant/
--regex-js=/\.([A-Za-z0-9._$]+)[ \t]*=[ \t]*\{/\1/o,object/
--regex-js=/['"]*([A-Za-z0-9_$]+)['"]*[ \t]*:[ \t]*\{/\1/o,object/
--regex-js=/([A-Za-z0-9._$]+)\[["']([A-Za-z0-9_$]+)["']\][ \t]*=[ \t]*\{/\1\.\2/o,object/
--regex-js=/([A-Za-z0-9._$]+)[ \t]*=[ \t]*\(function\(\)/\1/c,class/
--regex-js=/['"]*([A-Za-z0-9_$]+)['"]*:[ \t]*\(function\(\)/\1/c,class/
--regex-js=/class[ \t]+([A-Za-z0-9._$]+)[ \t]*/\1/c,class/
--regex-js=/([A-Za-z$][A-Za-z0-9_$()]+)[ \t]*=[ \t]*[Rr]eact.createClass[ \t]*\(/\1/c,class/
--regex-js=/([A-Z][A-Za-z0-9_$]+)[ \t]*=[ \t]*[A-Za-z0-9_$]*[ \t]*[{(]/\1/c,class/
--regex-js=/([A-Z][A-Za-z0-9_$]+)[ \t]*:[ \t]*[A-Za-z0-9_$]*[ \t]*[{(]/\1/c,class/
--regex-js=/([A-Za-z$][A-Za-z0-9_$]+)[ \t]*=[ \t]*function[ \t]*\(/\1/f,function/
--regex-js=/(function)*[ \t]*([A-Za-z$_][A-Za-z0-9_$]+)[ \t]*\([^)]*\)[ \t]*\{/\2/f,function/
--regex-js=/['"]*([A-Za-z$][A-Za-z0-9_$]+)['"]*:[ \t]*function[ \t]*\(/\1/m,method/
--regex-js=/([A-Za-z0-9_$]+)\[["']([A-Za-z0-9_$]+)["']\][ \t]*=[ \t]*function[ \t]*\(/\2/m,method/
72 changes: 72 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# vim: ft=gitconfig

[core]
editor = vim
excludesfile = ~/.gitignore

[rerere]
enabled = true

[init]
templatedir = ~/.gittemplate

[color]
diff = auto
status = auto
branch = auto

[color "branch"]
current = yellow reverse
local = yellow
remote = green

[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold

[color "status"]
added = yellow
changed = green
untracked = cyan

[merge]
tool = vimdiff

[alias]
ap = add -p
au = add -u
dfs = diff --stat
dh = diff HEAD
dhs = diff HEAD --stat
ds = diff --staged
dss = diff --staged --stat
co = checkout
ci = commit -v
cia = commit -v --amend
st = status -sb
sm = submodule
ss = show --stat
br = branch -vv
bra = branch -avv
ls = !git --no-pager log --pretty=format:\"%C(green)%h %Creset%s%C(yellow)%d %Creset%C(cyan)<%ae>%Creset\" --graph -20
lsa = log --pretty=format:\"%C(green)%h %Creset%s%C(yellow)%d %Creset%C(cyan)<%ae>%Creset\" --graph -20 --all
lg = log --pretty=format:\"%C(green)%h %C(blue)%ad %Creset%s%C(yellow)%d %Creset%C(cyan)<%an (%ae)>%Creset\" --graph --date=short
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
ff = merge --ff-only @{u}
up = remote update
rup = rebase @{u}
rank = shortlog -s -n --no-merges
desc = describe
track = !git branch --set-upstream $(git for-each-ref --format=\"%(refname:short)\" $(git symbolic-ref HEAD))
fixup = commit --amend -C HEAD
save = !git add -u && git commit -m \"WIP: $(git show -q --oneline HEAD)\"

[branch]
autosetuprebase = remote

[push]
default = upstream
[user]
name = Martin Øinæs Myrseth
15 changes: 15 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[submodule ".vim/bundle/neobundle.vim"]
path = .vim/bundle/neobundle.vim
url = https://github.com/Shougo/neobundle.vim
[submodule ".tmux/powerline"]
path = .tmux/powerline
url = git://github.com/erikw/tmux-powerline.git
[submodule ".zsh/oh-my-zsh"]
path = .zsh/oh-my-zsh
url = https://github.com/robbyrussell/oh-my-zsh.git
[submodule ".zsh/zsh-syntax-highlighting"]
path = .zsh/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
[submodule "apps/fzf"]
path = apps/fzf
url = https://github.com/junegunn/fzf.git
14 changes: 14 additions & 0 deletions .gittemplate/hooks/ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
exit 0 # Uncomment to enable ctags
mkdir .git/tags_lock 2>/dev/null || exit 0
trap 'rmdir .git/tags_lock; rm -f .git/tags.$$' EXIT

ctags --tag-relative -Rf.git/tags.$$ \
--exclude=.git \
--exclude=bower_components \
--exclude=node_modules \
--exclude=__pycache__ \
--exclude=tests/data \
--languages=-sql

mv .git/tags.$$ .git/tags
2 changes: 2 additions & 0 deletions .gittemplate/hooks/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
.git/hooks/ctags >/dev/null 2>&1 &
2 changes: 2 additions & 0 deletions .gittemplate/hooks/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
.git/hooks/ctags >/dev/null 2>&1 &
2 changes: 2 additions & 0 deletions .gittemplate/hooks/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
.git/hooks/ctags >/dev/null 2>&1 &
4 changes: 4 additions & 0 deletions .gittemplate/hooks/post-rewrite
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
case "$1" in
rebase) exec .git/hooks/post-merge ;;
esac
5 changes: 5 additions & 0 deletions .gittemplate/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
if !(git config user.name &> /dev/null && git config user.email &> /dev/null); then
echo "Please setup your repository with a user.name and user.email" >&2
exit 1
fi
183 changes: 183 additions & 0 deletions .i3/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font pango:DejaVu Sans Mono 9

# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
# font pango:DejaVu Sans Mono 10

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# Synapse
bindsym $mod+Shift+p exec --no-startup-id "synapse"

# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+backslash split h

# split in vertical orientation
bindsym $mod+minus split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
#bindsym $mod+d focus child

# Rename workspace
bindsym $mod+comma exec i3-input -F 'rename workspace to "%s"' -P 'New name: '

# Move workspace
bindsym $mod+x move workspace to output right

# switch to workspace
bindsym $mod+p workspace prev
bindsym $mod+n workspace next
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10

# reload the configuration file
bindsym $mod+Shift+c reload

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart

# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

# Lock the screen
bindsym $mod+Shift+z exec "i3lock -c 000000 -d"

# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode

# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt

# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt

# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Media keys
bindsym $mod+Delete exec --no-startup-id "amixer -c 0 -- set Master 1-"
bindsym $mod+Next exec --no-startup-id "amixer -c 0 -- set Master 1+"
bindsym $mod+Insert exec --no-startup-id "$HOME/.i3/spotify Previous"
bindsym $mod+Home exec --no-startup-id "$HOME/.i3/spotify PlayPause"
bindsym $mod+Prior exec --no-startup-id "$HOME/.i3/spotify Next"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
output DP-1
position top
status_command i3status
}

bar {
output DVI-I-1
position top
tray_output none
}
5 changes: 5 additions & 0 deletions .i3/spotify
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
dbus-send --print-reply \
--dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 \
org.mpris.MediaPlayer2.Player."$1"
1 change: 1 addition & 0 deletions .local/bin/fzf
1 change: 1 addition & 0 deletions .local/bin/fzf-tmux
7 changes: 7 additions & 0 deletions .mailcap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Diff
text/x-diff; cat %s | colordiff; copiousoutput
text/x-patch; cat %s | colordiff; copiousoutput

# HTML
text/html; elinks %s; nametemplate=%s.html
text/html; elinks -dump %s; nametemplate=%s.html; copiousoutput
Loading

0 comments on commit 61a3f80

Please sign in to comment.