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
const arr = [6, 8, 10, 2, 5, 6, 13, 11, 8, 0, 11, 11, 3, 5, 100, 100, 78]; | |
Array.prototype.removeDuplicates = function () { | |
let arr = this; | |
// Sort array first | |
arr.sort(function(a, b) { | |
return a - b; | |
}); |
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
<div ng-class="[{'class': someFunction()}, variable]"></div> |
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
@bulletcolours: | |
black @color-black, | |
blue @color-blue, | |
red @color-red, | |
green @color-green, | |
yellow @color-yellow, | |
navy @color-navy, | |
orange @color-orange, | |
grey @color-grey; |
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
@include keyframes(fadeIn) { | |
0% { | |
opacity: 0; | |
} | |
100% { | |
opacity: 1; | |
} | |
} |
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
function prepareIframe(src) { | |
var iframeDocument, iframeContent; | |
var iframe = document.getElementById("iframe-print"); | |
if (!iframe || !src) { | |
return; | |
} | |
iframe.src = src; |
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
.wrapper { | |
display: inline-block; | |
position: relative; | |
&:after { | |
content: ""; | |
padding-top: 56.25%; // Use 100% for square ratio | |
display: block; | |
} |