Skip to content

Instantly share code, notes, and snippets.

@annajmorton
annajmorton / Kings10.md
Last active July 7, 2016 18:59
4.5.1 Class Notes - 6/17

#Class Notes ###Solutions for 4.5.1 Ajax Intro excercises

###Here is some alternative syntax for writing really long strings. The solutions use what is called a template literal:

     var categories = tool.categories.join(' ');
                var row = "<tr>";
                    row += "<td>" + tool.title + "</td>";
 row += "" + tool.quantity + "";
@annajmorton
annajmorton / kings7.md
Last active June 3, 2016 22:27
3.4 Notes - 06/03/2016 Javascript Functions

#functions - we made it!!! i love you!!!!!

##3.4.1 Functions

###3.4.2 Scope review questions:

  1. will the console.log() after fun1() be different from the console.log() after fun2()? (paste the code between script tags and run it on your browser!):
@annajmorton
annajmorton / kings6.md
Last active June 2, 2016 21:50
3.3.3-3.3.4 Notes - 06/02/2016

#Loops

##review questions

  1. what do loops represent (i.e. what is their duty)?

  2. what is a counter? how is it use?

  3. what are the three critical components of a fully defined loop? (hint: think the three arguments a for loop takes i.e.

    for( arg 1, arg 2, arg 3) {
@annajmorton
annajmorton / kings5.md
Last active June 1, 2016 20:13
2-3.1.2 Notes - 05/31/2016
@annajmorton
annajmorton / kings3.md
Last active May 31, 2016 14:10
work day
@annajmorton
annajmorton / kings2.md
Last active May 26, 2016 20:14
1.2-1.3.5 Notes - 05/25/2016

##requests, responses, and your vm setup

This diagram described the interaction between your mac and the virtual machine (thanks Luis!): mac vm relationship

The following links relate to the "get" and "post" requests we tested in the Form lesson 1.2.1. This is the tip of the iceberg! We will return to http requests/responses again and again (it's how the internet works!). You have plenty of future opportunities to deepen your understanding of this concept.

  1. Anatomy of a URL
@annajmorton
annajmorton / kings1.md
Last active May 26, 2016 20:13
1.1.1-1.1.6 Notes - 05/23/2016

##what's up with my vagrant box?? Check out the README.md file in the root directory of your vagrant folder for a little more information.

  1. hint: here is the command to get into your vagrant machine $ cd vagrant-lamp/
  2. hint: here is the command to view all the files in the root of vagrant $ ls -la
  3. hint: use sublime to view the mark down file $ subl README.md

##sublime shortcuts:

  1. lorem tab: auto fills a big chunk of sample text in latin, great for temporary content you can practice styling.
  2. / CMD: comments out row, works in sublime for all the languages we use (html, css, javascript, and php).