- Command mode
- Insert mode
$ vimtutor
| { | |
| "extends": [ | |
| "standard", | |
| "standard-jsx" | |
| ], | |
| "rules": { | |
| "jsx-quotes": [0, "prefer-double"] | |
| }, | |
| "env": { | |
| "browser": true, |
| const path = require('path') | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin') | |
| const webpackConfig = { | |
| devtool: 'source-map', | |
| entry: './src/index.js', | |
| output: { | |
| path: path.resolve(__dirname, './build'), | |
| filename: 'index.bundle.js' |
| { | |
| "us-east-1": "US East (N. Virginia)", | |
| "us-east-2": "US East (Ohio)", | |
| "us-west-1": "US West (N. California)", | |
| "us-west-2": "US West (Oregon)", | |
| "ca-central-1": "Canada (Central)", | |
| "eu-west-1": "EU (Ireland)", | |
| "eu-central-1": "EU (Frankfurt)", | |
| "eu-west-2": "EU (London)", | |
| "ap-northeast-1": "Asia Pacific (Tokyo)", |
| const luckyDip = () => { | |
| const gen = (upper, lower = 1, arr = [] ) => { | |
| arr.push(upper) | |
| return upper === 1 ? arr : gen(upper-1, lower, arr) | |
| } | |
| const shuffle = (array) => { | |
| let currentIndex = array.length, temporaryValue, randomIndex |
| { | |
| "extends": [ | |
| "standard", | |
| "standard-jsx" | |
| ], | |
| "rules": { | |
| "jsx-quotes": [0, "prefer-double"] | |
| }, | |
| "env": { | |
| "browser": true, |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| ;(function IIFE(global){ | |
| function noop(){} | |
| return function iSpyCreator(prevs, id){ | |
| prevs = prevs || {} | |
| id = id || Date.now().toString() | |
| prevs[id] = prevs[id] || {} | |
| 833c36099b7a78a29455de9bf9fde731e653347d |