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
{ | |
"extends": "stylelint-config-standard", | |
"rules": { | |
"indentation": 4, | |
"string-quotes": "single", | |
"no-duplicate-selectors": true, | |
"color-hex-case": "upper", | |
"color-hex-length": "short", | |
"selector-combinator-space-after": "always", | |
"selector-attribute-quotes": "always", |
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
powershell.exe -new_console:a -NoExit -command "& {Set-Location C:\htdocs}" |
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
// collections | |
$CONTAINER-WIDTHS: ( | |
5, | |
10, | |
20, | |
30, | |
40, | |
50, | |
60, |
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 id="simplest-example"> | |
<h1>{{ text }}</h1> | |
</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
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |
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
# now run in your console: (I'm actually using powershell) | |
pm2 start .\ecosystem.config.js |
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
// ⚡️ | |
funFunction.bind(this).call() | |
// is the same as | |
funFunction.call(this) |
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
// See https://github.com/nuxt-community/device-module | |
const mutationTypes = { | |
CHANGE_MOBILE: 'CHANGE_MOBILE', | |
} | |
const checkIfMobileOnServerSide = ({ req, isServer }) => { | |
if (isServer) return false | |
const userAgent = req && req.headers['user-agent'] | |
const isMobile = /mobile/i.test(('' + userAgent).toLowerCase()) |
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
/* | |
This needs to be in the store/index.js | |
*/ | |
const mutationTypes = { | |
SET_MOBILE: 'SET_MOBILE', | |
} | |
const checkIfMobileOnServerSide = ({ req, isServer }) => { | |
if (isServer) return false |
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
// `.truncate-1-line` and `truncate-2-lines` | |
@each $lines in (1, 2) { | |
:root .truncate-#{$lines}-line#{if($lines > 1, 's', '')} { | |
display: -webkit-box; | |
overflow: hidden; | |
-webkit-line-clamp: $lines; | |
-webkit-box-orient: vertical; | |
} | |
} |