Skip to content

Instantly share code, notes, and snippets.

View rrgayhart's full-sized avatar

Romeeka Gayhart rrgayhart

View GitHub Profile
@rrgayhart
rrgayhart / react-notes.md
Last active December 16, 2015 17:26 — forked from biglovisa/react-notes.md
React in theory

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

@rrgayhart
rrgayhart / os-contributions.md
Last active December 21, 2015 00:25
Tips and Tricks for Contributing to Open Source Over Break

Picking A Project to Work On

  • Find a Repo that is primarily written in a language you're comfortable with.
    • Check out 24pullrequests.com
    • Talk to mentors that regularly contribute to open source for suggestions
    • Think about tools you already use like rspec or minitest.
    • Browse around Github
  • Avoid 'dead' repos - look at open PRs for the project - if a ton unmerged, project may be dead. Also look at stars for the repo and last commit date on master.
  • Look at the open issues for ones you can help with
  • Look at coverage reports and builds for areas that are untested
  • Fork the repo
@rrgayhart
rrgayhart / Level 2
Last active December 23, 2015 02:29
Ruby Warrior by Bloc Level 2 Solution
class Player
def play_turn(warrior)
if warrior.feel.empty?
warrior.walk!
else
warrior.attack!
end
end
end
Beginning Regex
Intro to Regular Expressions by Michael Fitzgeral
http://www.amazon.com/Introducing-Regular-Expressions-ebook/dp/B008K9OGDA/ref=sr_1_2?ie=UTF8&qid=1374171971&sr=8-2&keywords=Regular+Expressions
Using Regular Expressions in Ruby: Part 1 by Nell Shamrell
https://www.bluebox.net/insight/blog-article/using-regular-expressions-in-ruby-part-1-of-3
Intermediate Regex
@rrgayhart
rrgayhart / Nokogiri Links
Last active December 26, 2015 19:49
Nokogiri Links
@rrgayhart
rrgayhart / gist:7308789
Last active December 27, 2015 10:09
Links to CSS and HTML Group Templates
Simon
https://github.com/srt32
http://www.simontaranto.com/
Louisa
https://github.com/LouisaBarrett
http://www.linkedin.com/in/louisabarrett
Kevin
https://github.com/x46672

I can explain the difference between function declarations and function expressions.

I can explain what the value of this is in a normal function.

I can explain what the value of this is when called from the context of an object.

I can explain how to explicitly set the value of this in a function.

I can explain the difference between call and apply.

Array Prototype Methods

I understand that functions in JavaScript can take any number of arguments.

I can describe the similarity between blocks in Ruby and anonymous functions in JavaScript.

Where are the methods available to all arrays (e.g. forEach, map, etc.) defined?

I can explain the difference between using a for loop and the forEach method.