Skip to content

Instantly share code, notes, and snippets.

View mcsuth's full-sized avatar

Seimith Suth mcsuth

View GitHub Profile

Coffee-Script lab

Hater's lab

Objective
To reinforce skills familiar in javascript regarding DOM interaction, and successfully translate them into Coffee-Script.

Coffee-Script lab

Hater's lab

Objective
To reinforce skills familiar in javascript regarding DOM interaction, and successfully translate them into Coffee-Script.
@mcsuth
mcsuth / W07D01HW
Created November 5, 2013 02:05 — forked from wcargen/W07D01HW
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.

CS WEEK: Data Structures

Intro to Linked Lists and Trees

  • What is Computer Science?
    • Types of knowledge
  • Why Data Structures?
    • Background Checkpoint
      • What are some familiar data structures…
      • What are some means of combination…
      • What are some means of abstracting…
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
@mcsuth
mcsuth / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console