Skip to content

Instantly share code, notes, and snippets.

@dnieh
dnieh / gist:9015767
Created February 15, 2014 07:42
Recursion to Solve a 2D String Array Maze
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;
};
@dnieh
dnieh / universal-principles-of-design.md
Last active February 11, 2016 20:07
Universal Principles of Design - Quick Reference
@dnieh
dnieh / index.html
Last active March 28, 2016 16:37
responsive full screen video on desktop and mobile (index.html)
<!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>
@dnieh
dnieh / app.js
Last active March 29, 2016 07:28
responsive full screen video on desktop and mobile (app.js)
'use strict';
$(function() {
var app = (function() {
var $videoContainer = $('.video-container');
var $video = $('.video');
var ratioWidth = 16;
var ratioHeight = 9;
var ratioCheck = function() {
@dnieh
dnieh / styles.sass
Last active March 29, 2016 07:25
responsive full screen video on desktop and mobile (styles.sass)
section {
height: 100vh;
}
.video-container {
position: relative;
// padding-bottom: 56.25%; <-- Important. Remove this.
height: 0;
overflow: hidden;

Keybase proof

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: