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
set -g base-index 1 | |
set-window-option -g pane-base-index 1 | |
set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL" | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Improve colors | |
set -g default-terminal 'screen-256color' |
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
"from gary bernhardt's dotfiles [57/888] | |
set nocompatible | |
" allow unsaved background buffers and remember marks/undo for them | |
set hidden | |
" remember more commands and search history | |
set history=10000 | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 |
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
#This could work: | |
class MegaLotto | |
NUMBERS = 5 | |
def self.draw | |
NUMBERS.times.inject([]) do |arr, i| | |
arr << self.random_draw | |
end | |
end |
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
# Simple installation notes for iterm2 and Solarized | |
Set ZSH_THEME in ~/.zshrc to blinks | |
https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized | |
#if you create new profile e.g. solarized you have to set him as default | |
#Simple installation notes for janus and Solarized | |
# .vimrc.before | |
let g:solarized_termcolors=256 | |
set t_Co=16 | |
set background=dark |
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
" Install vundle - git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
" Run BundleInstall | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle |
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
font=Inconsolata.otf && \ | |
curl http://www.levien.com/type/myfonts/$font -o /tmp/$font && \ | |
open -W -a /Applications/Font\ Book.app /tmp/$font && \ | |
rm /tmp/$font && \ | |
unset font |
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
require 'rake/testtask' | |
Rake::TestTask.new do |t| | |
t.libs.push "lib" | |
t.test_files = FileList['*_spec.rb'] | |
t.verbose = true | |
end |
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
= form_for [@user, @task], :html => { :class => 'form-inline' } do |f| | |
-if @task.errors.any? | |
#error_explanation | |
%h2= "#{pluralize(@task.errors.count, "error")} prohibited this task from being saved:" | |
%ul |
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
backend default { | |
.host = "127.0.0.1"; | |
.port = "6000"; | |
} | |
sub vcl_recv { | |
if (req.request == "PURGE") | |
{ | |
return(lookup); | |
} |