Cheat Sheet for the book by Lidwell, Holden, and Butler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Coord | |
{ | |
public: | |
Coord(int rr, int cc) : m_r(rr), m_c(cc) {} | |
int r() const { return m_r; } | |
int c() const { return m_c; } | |
private: | |
int m_r; | |
int m_c; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="css/styles.css"> | |
</head> | |
<body> | |
<section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
$(function() { | |
var app = (function() { | |
var $videoContainer = $('.video-container'); | |
var $video = $('.video'); | |
var ratioWidth = 16; | |
var ratioHeight = 9; | |
var ratioCheck = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section { | |
height: 100vh; | |
} | |
.video-container { | |
position: relative; | |
// padding-bottom: 56.25%; <-- Important. Remove this. | |
height: 0; | |
overflow: hidden; |
I hereby claim:
- I am dnieh on github.
- I am dnieh (https://keybase.io/dnieh) on keybase.
- I have a public key ASA9FQ9H68bNYQlzg55sgFwmhiRf_04z3FsSkvHTftiaDgo
To claim this, I am signing this object: