Skip to content

Instantly share code, notes, and snippets.

@kafkahw
Last active August 29, 2015 14:07
Show Gist options
  • Save kafkahw/2ed2b06b28de52fb1142 to your computer and use it in GitHub Desktop.
Save kafkahw/2ed2b06b28de52fb1142 to your computer and use it in GitHub Desktop.
Notes
Javascript:
* delegate = event handler
CSS:
* Pseduo class: to define a special state of an element.
* Pseduo element: to style specified parts of an element.
* "height" is the vertical measurement of the container.
Note: The height property does not include padding, borders, or margins; it sets the height of the area inside the padding, border, and margin of the element!
Note: The min-height and max-height properties override height.
* "line-height" is the distance from the top of the first line of text to the top of the second.
HTTP (all of the followings use the same TCP pipe):
* http/1.0: one request -> one response back and forth
* http/1.1: request pipelining with FIFO (restriction: responses need to be in the same order that requests get received)
* SPDY: request pipelining without FIFO (restriction: communicates separately with each host which means can only download things from one host at a time)
* http/2: Solve all restrictions above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment