Skip to content

Instantly share code, notes, and snippets.

View mdang's full-sized avatar

Mike Dang mdang

View GitHub Profile
@mdang
mdang / css-positioning-exercise-1.md
Last active August 29, 2015 14:20
css-positioning-exercise-1

15min

  • Create a heading for "Life Optimizer"
  • Create a horizontal navigation menu underneath with the following items:
    • Home
    • Products
    • Pricing
    • Disney Land
    • Contact Us
  • Create a class called "incorrect" that hides any HTML elements using "display: none"
@mdang
mdang / CONVENTIONS.md
Last active August 29, 2015 14:20
Code Structure and Conventions

Code Structure & Conventions

Lesson Objectives

  • Explain why coding conventions are important and why we should follow them
  • Properly organize your project
  • Describe the naming conventions for variables, methods
  • Name methods, classes and variables correctly
  • Explain what code commenting is, why it's valuable and when to use it
  • Add comments to a program to ease readability and describe meaning
@mdang
mdang / STRUCTURE.md
Created May 7, 2015 13:45
Recommended Project Structure
.
├── css
│   └── main.css
├── favicon.ico
├── fonts
├── images
├── index.html
└── js
 ├── app.js
@mdang
mdang / SECONDCHANCE.md
Created May 7, 2015 14:51
Second Chance

Second Chance

Now that we understand the importance of code formatting and proper variable/function naming, let's go back through our homeworks and labs and refactor our code.

Don't forget about the current project that we're working on now also.

@mdang
mdang / MOBILEFRIENDLY.md
Last active August 29, 2015 14:21
Mobile Friendly

##I'm Mobile Friendly##

20 min

Let's go back to last week's lab that we developed on Friday. Using media queries, make the page more mobile friendly by removing fixed widths, and applying appropriate font styling depending on the viewport size.

Attribute Example
min-width min-width: 640px
max-width max-width: 640px
@mdang
mdang / RWDPATTERNS.md
Last active August 29, 2015 14:21
Responsive Web Design Patterns

###Responsive Web Design Patterns###

Let's spend some time experimenting with all the different responsive web design patterns we have available to us. There are different resources on the web for finding them, but here's a nice list:

https://bradfrost.github.io/this-is-responsive/patterns.html

  1. Spend a few minutes glancing through some of these and play around with them in the Chrome mobile emulator.
  2. Choose one you want to work with, and slightly adjust the percentage values to see how it adjusts in the browser now.
  3. Integrate 2 responsive images within the layout.
@mdang
mdang / PACKETS.md
Last active August 29, 2015 14:21
IP Packets

IP Packets

IP packets are composed of a header and payload. The IPv4 packet header consists of:

  • 4 bits that contain the version, that specifies if it's an IPv4 or IPv6 packet,
  • 4 bits that contain the Internet Header Length, which is the length of the header in multiples of 4 bytes (e.g., 5 means 20 bytes).
  • 8 bits that contain the Type of Service, also referred to as Quality of Service (QoS), which describes what priority the packet should have,
  • 16 bits that contain the length of the packet in bytes,
  • 16 bits that contain an identification tag to help reconstruct the packet from several fragments,
  • 3 bits. The first contains a zero, followed by a flag that says whether the packet is allowed to be fragmented or not (DF: Don't fragment), and a flag to state whether more fragments of a packet follow (MF: More Fragments)
@mdang
mdang / REST.md
Last active August 29, 2015 14:21
HTTP Methods and REST API's
@mdang
mdang / HTTP.md
Last active August 29, 2015 14:21
HTTP

HTTP

Lesson Objectives

  • Differentiate between internet and web
  • Explain how the internet works, including what web server is and what a client is
  • Explain what protocols are
  • Explain what TCP/IP is
  • IP Addresses
  • Define DNS and identify its role in the client-server relationship
@mdang
mdang / SQLREF.md
Created May 26, 2015 17:07
SQL Reference

SQL

Admin Notes

  • Notifying instructors if late

Homework Review

10am, 30 minutes

Class Review

10:30, 30 minutes