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
/* | |
Original by Paul Irish and Modified from | |
http://www.paulirish.com/2008/how-to-iterate-quickly-when-debugging-css/ | |
*/ | |
(function() { | |
var i, a, aLength, s; | |
a = document.getElementsByTagName('link'); | |
aLength = a.length; | |
for (i=0; i < aLength; i++) { |
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
// Client side, you typically see the template style changed to {{ }} like so... | |
_.templateSettings = { | |
interpolate : /\{\{(.+?)\}\}/gim, | |
evaluate: /\{\#(.+?)\#\}/gim | |
}; | |
/* | |
However, in Node.js, this causes issues when trying to render a template. | |
Likely, you haven't paid too much attention to the fact that you are setting |
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
hexToRGB (hex) { | |
if (!hex) { | |
return ''; | |
} | |
// remove the hash | |
hex = hex.replace('#', ''); | |
// if shorthand, expand it | |
if (hex.length < 6) { |
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
$bezier: cubic-bezier(.215, .61, .355, 1); | |
transition: opacity .3s $bezier; |
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
/* http://codepen.io/Mest/pen/oKBIu?editors=1100 */ | |
* { | |
box-sizing: border-box; | |
} | |
html, | |
body, | |
.parent-div { | |
height: 100%; |
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
npm i --save-dev autoprefixer css-mqpacker cssnano postcss-automath postcss-cli postcss-for postcss-import postcss-initial postcss-mixins postcss-nested postcss-normalize postcss-sass-color-functions postcss-simple-vars postcss-svg |
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 originalArray = [3,3,26,3,3,26,26]; | |
const dedupedArray = [...new Set(originalArray)]; | |
console.log(dedupedArray); | |
// [3, 26] |
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
for packagejson in $(find ~/Projects -name 'package.json' -path '*node_modules/eslint-scope/*'); do jq '.version' $packagejson | grep '3.7.2' 1>/dev/null; if [[ $? == "0" ]]; then echo $packagejson; fi; done |