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
| # Operators are just methods. We can define and overwrite them just like any other. | |
| # By operators I mean things like +, -, *, /, and the list goes on. But these | |
| # are the most common. | |
| # | |
| # The goal for this program is to overwrite the subtract | |
| # method. For RightTriangle. The result should be a RightTriangle whose sides | |
| # are the result of performing subtraction (I know that's weird wording). | |
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
| class ParenthesesChecker | |
| attr_reader :input | |
| def initialize(input) | |
| @input = input | |
| end | |
| def check_valid_parentheses | |
| if begins_incorrectly? || ends_incorrectly? || unmatching_paren_count? | |
| false |
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
| people = %w(Umar Trevor Randy Marlone Gerardo Alex Isaac Conner) | |
| methods = [ | |
| "String#count", "String#index", "String#rindex", | |
| "String#gsub", "String#to_sym", "Hash#delete", | |
| "Hash#delete_if", "Hash#each_key", "Hash#each_value", | |
| "Hash#value?", "Hash#invert", "Hash#length", | |
| "Hash#merge", "Hash#select", "Hash#to_a", | |
| "Hash#values", "Hash#keys", "Array#compact", | |
| "Array#delete", "Array#delete_at", "Array#delete_if", |
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
| 18:20:20 clock.1 | started with pid 65300 | |
| 18:20:20 resque.1 | started with pid 65301 | |
| 18:20:20 web.1 | started with pid 65302 | |
| 18:20:21 web.1 | /Users/dylanrichards/.rvm/gems/ruby-2.0.0-p598/gems/kgio-2.8.0/lib/kgio_ext.bundle: [BUG] Segmentation fault | |
| 18:20:21 web.1 | ruby 2.0.0p598 (2014-11-13 revision 48408) [x86_64-darwin14.1.0] | |
| 18:20:21 web.1 | | |
| 18:20:21 web.1 | -- Crash Report log information -------------------------------------------- | |
| 18:20:21 web.1 | See Crash Report log file under the one of following: | |
| 18:20:21 web.1 | * ~/Library/Logs/CrashReporter | |
| 18:20:21 web.1 | * /Library/Logs/CrashReporter |
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
| execute pathogen#infect() | |
| call pathogen#helptags() | |
| syntax enable | |
| set background=light | |
| colorscheme solarized | |
| set guifont=inconsolata | |
| set smartindent | |
| set cursorline | |
| set tabstop=2 |
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
| clock: bundle exec clockwork lib/clock.rb | |
| resque: env TERM_CHILD=1 COUNT=3 QUEUE=high,normal,low RESQUE_TERM_TIMEOUT=100 bundle exec rake resque:work | |
| web: bundle exec unicorn -p 3000 -c ./config/unicorn.rb |
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
| # smart pane switching with awareness of vim splits | |
| bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" | |
| bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" | |
| bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" | |
| bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" | |
| bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l" | |
| set -g default-terminal "screen-256color" | |
| # set -g status-bg colour235 |
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
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> |
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
| # smart pane switching with awareness of vim splits | |
| bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" | |
| bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" | |
| bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" | |
| bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" | |
| bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l" | |
| set -g default-terminal "screen-256color" | |
| # set -g status-bg colour235 |
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
| gem 'twitter' |