#The power of z
Do you spend lots of time doing things like this?
cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwantWith z, you could just do this:
| { | |
| "printWidth": 80, | |
| "singleQuote": true, | |
| "trailingComma": "all", | |
| "write": "src/**/*.js", | |
| "jsxBracketSameLine": true | |
| } |
| export PKG=eslint-config-airbnb; | |
| npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest" | |
| #Install other ESLint peer-dependancies as well as prettier: | |
| npm install -D babel-eslint eslint-config-react eslint-config-prettier eslint-plugin-prettier prettier |
| { | |
| "extends": ["airbnb", "prettier", "prettier/react"], | |
| "rules": { | |
| "react/jsx-filename-extension": [ | |
| "error", | |
| { "extensions": [".js", ".jsx"] } | |
| ], | |
| "react/react-in-jsx-scope": 0, | |
| "react/require-default-props": 0, | |
| "react/forbid-prop-types": 1, |
| {module.exports = { | |
| "parser": "babel-eslint", | |
| "env": { | |
| "browser": true, | |
| "es6": true | |
| }, | |
| "settings": { | |
| "ecmascript": 6, | |
| "jsx": true | |
| }, |
| ############################################################### | |
| # environment variables file | |
| ############################################################### | |
| *.env | |
| ############################################################### | |
| # General Mac OS | |
| ############################################################### | |
| .DS_Store | |
| .AppleDouble |
#The power of z
Do you spend lots of time doing things like this?
cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwantWith z, you could just do this:
| // Type into terminal | |
| yarn add bundle-buddy-webpack-plugin webpack-bundle-analyzer --dev | |
| // webpack.bundlebuddy.js | |
| const webpackBundleBuddy = require("bundle-buddy-webpack-plugin") | |
| module.exports = { | |
| plugins: [ | |
| new webpackBundleBuddy({sam: true}) | |
| ] |
| <div>The total time of the movies is: <span id="demo"></span> | |
| </div> |
| <!-- Attribution-ShareAlike License --> | |
| <small> | |
| Feature image by<a title="image name" class="feature-image-credit" href="" target="_blank">flickr username</a> | |
| <a title="Attribution-ShareAlike License" class="cc-license" href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank" rel="nofollow"><img src="" /></a> | |
| </small> | |
| <!-- public domain License --> | |
| <img alt="" src="" title="" img=""> |
| // use the function form of strict | |
| function convert(num) { | |
| var remainingValue = num; | |
| var newRomanNumeral = ""; | |
| var romanNumerals = [{ | |
| numeral: "M", | |
| value: 1000 | |
| }, { |