Skip to content

Instantly share code, notes, and snippets.

View bdougie's full-sized avatar

Brian Douglas bdougie

View GitHub Profile

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@bdougie
bdougie / Bloc notes
Created December 18, 2013 12:11
ruby syntax - checkpoint
A Symbol is designated with a colon (:) to the left of a word.
Method
Call - run or execute a method.
Define - compose or write a method.
@bdougie
bdougie / Questions for Adam
Last active December 31, 2015 17:39
These are the questions I am storing till my next meeting with my mentor.
Better Errors Gem:
https://github.com/charliesome/better_errors
1. avatar not working - AWS bucket not working.
2. Not able to render a list of post.
@bdougie
bdougie / Thingstolearnwith.md
Last active January 1, 2016 23:59
Goals for 2014

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt

##Rabbit Hole Session

  • the term I have created to explain how I search the web for one thing about programming and find my self looking at something completely unrelated.
  • e.g.: (1)I might start looking for through the Ruby Documentation on specific information on how Modules work and their assoication with Models, but then end up on Indeed finding Ruby jobs in Nashville for 45 minutes. (2) I might be researching different frameworks such as Sintara or Racks on popular Ruby blogs and then find myself spending 2 hours searching reviews for careers in San Francisco.(3) Open up Sublimetext to begin a programming session but instead spend 3 hours researching the best wood to build a standing desk for my future remote Rails Dev position.
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@bdougie
bdougie / house.rb
Created April 3, 2014 11:52
House Refactor
class House
def self.recite
new.recite
end
def recite
(1..12).map {|i| line(i) }.join("\n")
end
private
@bdougie
bdougie / conway.rb
Last active August 29, 2015 13:59
Failing Conway Test
#// Here is my Failing test //#
Failures:
1) Game of Life #Board should check neighbor to the north for alive
Failure/Error: expect(subject.live_neighbors_around).to change(subject.live_neighbors_around, :count).by(1)
NoMethodError:
undefined method `count' for nil:NilClass
# ./spec/start_spec.rb:48:in `block (3 levels) in <top (required)>'
@bdougie
bdougie / week0.md
Last active August 29, 2015 14:00
Ruby Newbie Odin Gist