Skip to content

Instantly share code, notes, and snippets.

View ivanbanov's full-sized avatar
:octocat:
undefined

Ivan Banov ivanbanov

:octocat:
undefined
View GitHub Profile
@ivanbanov
ivanbanov / responsive-grid.scss
Last active August 29, 2015 14:23
Responsive grid focused on mobile first
// BREAKPOINTS
// https://jdsteinbach.com/css/sass-maps-breakpoint-mixin/
$breakpoints: (
small : 320px,
medium: 768px,
large : 992px,
wide : 1400px
);
$columns: 12;
$gutter : 1em;
@ivanbanov
ivanbanov / DateDiff.js
Last active August 29, 2015 14:17
Script to calculate how older is some date
;(function(win) {
'use strict';
/*
* CONSTRUCTOR
*/
function DateDiff(date) {
this.date = new Date(date);
this.dateNow = new Date();
}