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
/* From: http://www.minimit.com/articles/solutions-tutorials/bootstrap-3-responsive-columns-of-same-height */ | |
/* columns of same height styles */ | |
.container-xs-height { | |
display:table; | |
padding-left:0px; | |
padding-right:0px; | |
} | |
.row-xs-height { | |
display:table-row; |
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
@screenMobile: 320px; | |
@screenTablet: 768px; | |
@screenDesktop: 992px; | |
@screenLarge: 1200px; | |
@screenExtraLarge: 1600px; | |
.mobile(@rules, @invert: false) { | |
.mixin (@invert) when (@invert = false) { | |
@query: ~"(min-width: @{screenMobile})"; | |
@media @query { |
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
@screen-xs: 480px; | |
@screen-sm: 600px; | |
@screen-md: 768px; | |
@screen-lg: 960px; | |
@screen-xs-min: @screen-xs; | |
@screen-sm-min: @screen-sm; | |
@screen-md-min: @screen-md; | |
@screen-lg-min: @screen-lg; |
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
let beforeInts = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100, 112, 113]; | |
let afterInts = evenify(beforeInts); | |
console.log('beforeInts: ' + beforeInts); | |
console.log('afterInts: ' + afterInts); | |
function evenify(ints, currentIndex = 0, evenInts = []) {// es6 feature for default argument values | |
let currentInt = ints[currentIndex]; | |
if (currentInt % 2 === 0) { | |
evenInts.push(currentInt); |
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
Show hidden characters
{ | |
"plugins": [ | |
"react-hot-loader/babel"// this should not be used, but still shows up if you inspect bundle | |
] | |
} |