Skip to content

Instantly share code, notes, and snippets.

# 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 some time, 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!
@pdtpatrick
pdtpatrick / recreating_prev_code.cpp
Created April 26, 2016 05:33
Messing around to learn cpp
#include <iostream>
#include <fstream>
#include <string>
#include <iterator>
#include <algorithm>
#include <sstream>
#include <vector>
#include <map>
using namespace std;
@pdtpatrick
pdtpatrick / vim-scriptnames
Created August 2, 2013 18:28
loaded_scriptnames
126: ~/.vim/bundle/vim-syntastic/syntax_checkers/python/flake8.vim
127: ~/.vim/bundle/vim-syntastic/syntax_checkers/python/pyflakes.vim
128: ~/.vim/bundle/vim-syntastic/syntax_checkers/python/pep8.vim
129: ~/.vim/bundle/vim-syntastic/syntax_checkers/python/py3kwarn.vim
130: ~/.vim/bundle/vim-syntastic/syntax_checkers/python/pylama.vim
131: ~/.vim/bundle/vim-syntastic/syntax_checkers/python/pylint.vim
132: ~/.vim/bundle/vim-syntastic/syntax_checkers/python/python.vim
133: ~/.vim/bundle/vim-syntastic/autoload/syntastic/util.vim
134: ~/.vim/bundle/vim-syntastic/autoload/syntastic/makeprg.vim
135: ~/.vim/bundle/vim-syntastic/autoload/syntastic/postprocess.vim
@pdtpatrick
pdtpatrick / vimrc
Created August 2, 2013 17:09
vimrc-syntastic
let g:syntastic_python_checkers=['pylint']
let g:syntastic_check_on_open=1
let g:syntastic_auto_jump=1
let g:syntastic_enable_balloons=1
"------------SYNTASTIC-----------
let g:syntastic_enable_signs=1
let g:syntastic_mode_map={ 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['html', 'java'] }
let g:syntastic_coffee_checkers = ['coffeelint', 'coffee']
@pdtpatrick
pdtpatrick / rvmtrace
Created November 8, 2012 00:00
traceRVM
+__rvm_parse_args:639> [[ -n 4.3.11 ]]
+__rvm_parse_args:674> [[ -z '' && -n '' ]]
+__rvm_parse_args:677> [[ error == || 0 -eq 1 || -n '' ]]
+__rvm_parse_args:16> [[ -n reinstall ]]
+__rvm_parse_args:18> rvm_token=reinstall
+__rvm_parse_args:20> (( 1 > 0 ))
+__rvm_parse_args:22> next_token=1.8.7
+__rvm_parse_args:23> shift
+__rvm_parse_args:28> case reinstall ([[:alnum:]]*|@*)
+__rvm_parse_args:31> case reinstall (use)
@pdtpatrick
pdtpatrick / install.sh_diff
Created October 16, 2012 18:39
install.sh diff
--- ~scmbDir ‹master* M⁇› » git diff
diff --git a/install.sh b/install.sh
index c2e2798..bfa99cb 100755
--- a/install.sh
+++ b/install.sh
@@ -19,7 +19,7 @@ for rc in bashrc zshrc; do
done
# Load SCM Breeze update scripts
-source "$scmbDir/lib/scm_breeze.sh"
@pdtpatrick
pdtpatrick / policies_controller.rb
Created September 10, 2012 18:28
controller_sharing
class PoliciesController < ApplicationController
def new
@policy = Policy.new
end
def create
@policy = Policy.new(params[:policy])
# save policy
if @policy.save
flash[:notice_success] = "Form sent."