Skip to content

Instantly share code, notes, and snippets.

View joechan3's full-sized avatar

Joseph Chan joechan3

  • Edmonton, AB, Canada
View GitHub Profile
@joechan3
joechan3 / ratio.html
Created June 16, 2016 03:28
Container which maintains the ratio
<!doctype html>
<html>
<head>
<style>
/* container which maintains the ratio */
/* padding-bottom is the magic rule to set the aspect ration */
.container {
position: relative;
height: 0;
@joechan3
joechan3 / base.css
Last active June 16, 2016 19:46
Applying RWD Styles
@-ms-viewport {
width: device-width;
}
@import "reset";
@import "smallest";
@media print {
@import "print";
}
@joechan3
joechan3 / project_spec.js
Created July 8, 2016 20:44
Jasmine Spec Boilerplate
describe("Calculator", function () {
beforeEach(function () {
Calculator.current = 0;
});
describe("When adding numbers", function () {
it("should store the current value at all times", function () {
expect(Calculator.current).toBeDefined();
});