| Objective |
|---|
| To reinforce skills familiar in javascript regarding DOM interaction, and successfully translate them into Coffee-Script. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Magic 8-Ball Homework - Monday, Nov. 4th, 2013 | |
| This homework is a way to learn more about things we covered today in class. We talked about ActiveRecord relations and join tables. We also talked about CoffeeScript. | |
| The objective for this assignment is to create a single page app that uses 3 models, Question, Answer, & AnsweredQuestion. There should be a has_many and has_many:through association between your models. | |
| Use a seed file to put answers into your database. Please see seed file below, which has been typed out to spare you the pain of that :) | |
| CoffeeScript will be used to implement the application's front-end logic and for making the AJAX post request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| O(1) - Constant time | |
| "Get the first value of a list" | |
| "Random sample from a list" | |
| O(logN) - Divide and Pick | |
| Typical of algorithms that divide the input, then look at one of the sections | |
| Searching sorted data | |
| O(N) - For each .... | |
| Sum an array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
OlderNewer