Skip to content

Instantly share code, notes, and snippets.

View mdang's full-sized avatar

Mike Dang mdang

View GitHub Profile
@mdang
mdang / VIEWPORT.md
Last active November 11, 2016 19:11
Importance of setting the viewport

Going mobile first

Setting the viewport

<meta name="viewport" content="width=device-width, initial-scale=1">
@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 / INTERNET_PROTOCOL.md
Last active August 9, 2016 23:29
Meet Ivan Pakkitz

IP (Meet Ivan Pakkitz)

Pair exercise - 15 min

Ivan is a postal worker who can travel at the speed of light. He's happy to relay thousands of messages per second between you and a friend. However, he can only transport one message at a time, and it has to fit on an index card.

Unfortunately Ivan is incredibly inattentive, so there are a few minor limitations in his service:

  • Integrity: He cannot guarantee that all messages will arrive in their entirety
  • Order: He cannot guarantee delivered messages will arrive in the same order that they were sent
@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 / EXERCISE_API.md
Last active April 5, 2016 14:42
Exercise: API Discovery
@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 / GIT_HUB_FUNDAMENTALS.md
Last active July 6, 2023 01:23
Git(Hub) Fundamentals

Git(Hub) Fundamentals

Learning Objectives

  • Describe reasons for using version control
  • Explain what Git is and why we use it
  • Start a repo by initializing locally
  • Add and commit changes
  • Check the status of a repo
  • Explain what role GitHub plays
@mdang
mdang / GITPRACTICE.md
Last active February 1, 2024 05:49
Team Git Practice

Team Git Practice

25 min

Let's simulate using Git in a team environment to help us better prepare for development in a professional setting.

Preparation

Split up into teams of 3-4. If You're in a group of 3, then the Release Manager will also play the role of Developer 3.