in nuxt.config:
....
/*
** Plugins to load before mounting the App
*/
plugins: ['~/plugins/autoloads.js' /*, ... */],| const isMac = navigator.platform === 'MacIntel'; | |
| const KEY = { | |
| UP: 38, | |
| DOWN: 40, | |
| }; | |
| document.querySelector("input").addEventListener("keydown", e => { | |
| if ([KEY.UP, KEY.DOWN].includes(e.keyCode)) { | |
| e.preventDefault(); |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "chrome", | |
| "request": "launch", | |
| "name": "client: chrome", | |
| "url": "http://localhost:3000", | |
| "webRoot": "${workspaceFolder}" | |
| }, |
| git config --global alias.pushall '!f(){ for var in $(git remote show); do echo "pushing to $var"; git push $var; done; }; f' |
in nuxt.config:
....
/*
** Plugins to load before mounting the App
*/
plugins: ['~/plugins/autoloads.js' /*, ... */],Disadvantages of String.padStart()
> (-4+'').padStart(7,'0')
"00000-4"
| /* Указываем box sizing */ | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| /* Убираем внутренние отступы */ | |
| ul[class], | |
| ol[class] { |
| // most restricted user zoom possibilities | |
| meta(name="viewport", content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=1.0, user-scalable=no") | |
| // iOs safari kick-ass | |
| meta(name="apple-mobile-web-app-capable", content="yes") | |
| meta(name="apple-mobile-web-app-status-bar-style", content="black-translucent") | |
| // detections in mobile Chrome & FF are on by default | |
| // following directives helps to switch them off | |
| // in some desktop browsers (webkit & FF) can be switched on | |
| meta(name="format-detection", content="telephone=yes") | |
| meta(name="format-detection", content="address=yes") |
| <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=1.0, user-scalable=no"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | |
| <meta name="format-detection" content="telephone=yes"> | |
| <meta name="format-detection" content="address=yes"> |
| function __randomN(...args) { | |
| if (Array.isArray(args[0])) return __randomN(args[0]); | |
| function getRandomIntMax(max) { | |
| return Math.floor(Math.random() * Math.floor(max)); | |
| } | |
| function getRandomIntInclusive(min, max) { | |
| min = Math.ceil(min); |
| #!/bin/bash | |
| # Shallow clone the Git repository to specified folder and launch showing | |
| # README files. Optimized to use under Windows | |
| # | |
| # Optionally: | |
| # - Deep clone | |
| # - install NPM depedancy with NPM or Yarn | |
| # - launch `start` script from `package.json` | |
| # |