Skip to content

Instantly share code, notes, and snippets.

View brantwellman's full-sized avatar

Brant Wellman brantwellman

View GitHub Profile
@brantwellman
brantwellman / readmelove.md
Last active April 25, 2016 01:40 — forked from rrgayhart/readmelove.md
README Love

Space Pirates : Destroyer - Gametime
3D Engine

##PROTIP: README Love

READMEs are AWESOME. They are one of the best things you can add to a repo, (other than quality code), to make it look professional.

####Things that make a README great:

  • A link to the production site on heroku
@brantwellman
brantwellman / require.markdown
Last active April 3, 2016 18:21 — 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?
  • A module is the "fundamental Node building block". It maps directly to a file. Code within that file/module is only available to other code within that module unless it is exported.

JavaScript Functions

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

  • Yes and, Function declaration has a name....where as a function expression is saved as a variable. Function declarations are hoisted, and expressions are not....the variables that are storing the functions are hoisted, but they are undefined until the variable is actually defined.

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

  • It is the global object.

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

  • It is whatever object its being called from.
@brantwellman
brantwellman / package-management.markdown
Last active March 24, 2016 19:23 — forked from rrgayhart/package-management.markdown
The Dangers of Using Code You Don't Control

Setting Group Expectations

Group Member Names: Brant Wellman, Penney Garrett, Jamie Crockett

  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? Penney works Sunday till 1p, Yoga Friday eves. Better earlier in the day mentally than later. Jamie - Friday vet apt in afternoon, Sunday Patriots game. Brant - would love one day off this weekend (Sunday?) but not necessary. Penney works better in the morning and Jamie wants on that boat.

  2. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained? Slack is main communication then GH. Everyone has phone numbers

@brantwellman
brantwellman / cfu_crud_in_sinatra.markdown
Last active December 2, 2015 15:45 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD.
  2. There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for.
  3. Why do we use set method_override: true?
  4. Explain the difference between value and name in this line: <input type='text' name='task[title]' value="<%= @task.title %>"/>.
  5. What are params? Where do they come from?