Skip to content

Instantly share code, notes, and snippets.

View damwhit's full-sized avatar

David Whitaker damwhit

View GitHub Profile
@damwhit
damwhit / mod_0_session_3_practice_tasks.md
Last active October 28, 2020 18:24 — forked from rwarbelow/mod_0_session_4_practice_tasks.md
Mod 0 Session 3 Practice Tasks

Session 3 Practice Tasks

The assignments listed here should take you about 1 hour in total.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
@damwhit
damwhit / Quick_Open_Editor.md
Last active July 1, 2019 05:16 — forked from timomitchel/Quick_Open_Editor.md
How to configure your editor to open from the command line

Steps to Enable Shell Command

Atom

You can try opening Atom and clicking on the Atom tab to navigate to the Install Shell Commands prompt.

Atom-Shell-Commands

Open a terminal window and type atom .

@damwhit
damwhit / mod_0_session_1_readings.md
Last active September 8, 2020 01:44 — forked from rwarbelow/mod_0_session_2_readings.md
Mod 0 Session 1 Readings

Session 1 Readings and Responses

The readings and responses listed here should take you approximately 25 minutes.

To start this assignment, click the button in the upper right-hand corner that says Fork. This is now your copy of this document. Click the Edit button when you're ready to start adding your answers. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

  • Your key take-aways OR how you're going to implement specific points (minimum 2):
@damwhit
damwhit / require-1511.markdown
Last active May 24, 2016 04:40 — 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?
  • A module maps directly to a file. A module is private until it is exported using module.exports and imported using require.
**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?"
Fast algorithms can take up a lot of memory, and vice versa. ie. merge sort takes up a ton of space but is much faster than insertion sort that is slower but also takes up less memory. This is a particularly important consideration if you are working with very large sets of data. Bubble sort can be twice as slow as insertion sort even if it has a smaller amount of data.
**Step Four**: _Totally Optional_: take a look at some of the other forks and comment if the spirit moves you.
@damwhit
damwhit / cfu_crud_in_sinatra.markdown
Last active February 3, 2016 20:21 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD. CRUD is an acronym that stands for create, read, update and delete. These four words correspond to the verbs in HTTP. In order to have full CRUD functionality within a Sinatral app, the app must be able to do all four of these things.
  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. i. Read '/tasks' & GET shows view of all tasks from index.erb ii. Read '/tasks/:id' & GET shows view of a specific task from show.erb iii. Create 'tasks/new' & GET makes form to create a new task in new.erb iv. Create '/tasks' & POST sends data to the server and redirect to '/tasks' v. Update '/tasks' & GET makes a form to input and update an existing task from edit.erb vi. Update '/tasks/:id/edit' & PUT sends data to the server to update existing task information vii. Delete '/tasks/:id' & Delete deletes existing information