Skip to content

Instantly share code, notes, and snippets.

@brianrip
brianrip / cfu_crud_in_sinatra.markdown
Last active February 3, 2016 00:42 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding

1. Define CRUD.

  • Create Read Update Delete

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.

  • GET/index.rb: Listing all instances
  • GET/show.rb: Shows one instance
  • GET/new.rb: Creates ability for new instance
  • POST/index.rb: Creates and saves a new instance
  • GET(update)/new.rb: Update existing instance
  • PUT/index.rb: Updates and saves edited instance
@brianrip
brianrip / es6.markdown
Last active May 19, 2016 21:09 — forked from rrgayhart/es6.markdown
es6 - 1510

Throughout the module (and your journey to Google enlightenment while working on IdeaBox2.0) you may notice a few different ways that JavaScript code is being written.

That might have something to do with something called ES6 and ES5

Fork this gist and answer the following questions:

What is ES6?

  • ES6 is the latest release of JS language specifications that allow for number of new features to improve upon ES5.

What is Transpilation and how does it relate to ES6?

  • Transpilation is the process of compiling ES6 code to become compatiable with browsers that only support ES5.
@brianrip
brianrip / 1511-custom-set.markdown
Last active May 19, 2016 16:33 — forked from rrgayhart/1511-custom-set.markdown
1511-custom-set.markdown

Custom Set Problems

  • Brian and July repo passing.
  • Brian and July!
  • Proper use of enumerables.. Just need more practice.
**Step One**: Watch [Sorting Algorithms in JavaScript](https://www.youtube.com/watch?v=uRyqlhjXYQI)
**Step Two**: Fork this gist.
**Step Three**: Respond to this question in your fork: "What are some of the balances and trade offs between different sorting algoritms?"
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you.
@brianrip
brianrip / require-1511.markdown
Last active May 27, 2016 03:18 — forked from rrgayhart/require-1511.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?