Skip to content

Instantly share code, notes, and snippets.

View ShannonPaige's full-sized avatar

Shannon Paige ShannonPaige

View GitHub Profile

JavaScript Functions

I can explain the difference between function declarations and function expressions. Yes. Declarations can get used higher than they are written, expressions can't.

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

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

@ShannonPaige
ShannonPaige / require.markdown
Last active March 29, 2016 02:15 — forked from rrgayhart/require.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?

Array Prototype Methods

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

Check

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

Yep

@ShannonPaige
ShannonPaige / package-management.markdown
Last active March 24, 2016 17:49 — forked from rrgayhart/package-management.markdown
The Dangers of Using Code You Don't Control
@ShannonPaige
ShannonPaige / javascript_exercism_review.md
Last active March 26, 2016 18:15
javascript_exercism_review.md

##Leap My code: here

  • Responder #1 (here) - This user begins by doing an "if" check on the century condition, but then returns the result of a conditional check, on the year%4. It's interesting, but the inconsistency of the two approaches smells to me. I would have done an if statement for both or return the result of the conditional check for both -- not one of each.
  • Responder #2 (here) - This user has a solution almost exactly like mine, but they wrap the entire method in "if(typeof this.input === 'number')" -- and I don't know why...
  • Responder #3 (here) - Another user who has an answer really close to mine, but with small differences I don't necessarily understand. They "use strict" and their isLeap module isn't a prototype.
  • Responder #
@ShannonPaige
ShannonPaige / cult.md
Last active January 11, 2016 22:04
The Cult of Pythagoras

#The Cult of Pythagoras

##The Pythagorean Theorem

  • a^2 +b^2 = c^2 in ancient greece - the square literally meant the square around it
  • a^2 +b^2 = c^2 in computer science - it's a formula for finding the shorest distance. Can be used to quantify distance and cluster results (like Netflix ratings and other predictive filtering algorythms)

but who was pythagoras.....

##Early Life of Pythagoras

Setting Group Expectations

Group Member Names: Matt, Cole, Mike, Shannon

Turkey and Chicken handshakes established.

  1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed? Mike - free all the time Shannon - not late Cole - busy on Tuesdays and Wednesday 4-5 and in-laws in town until Wednesday