- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
- Using
classNameinstead ofclass
- Install plugin RegReplace
- Install plugin Chain Of Command
| /// <reference path="../../typings/index.d.ts" /> | |
| const fs = require('fs') | |
| const regedit = require('regedit') | |
| const path = require('path') | |
| const PBK_FILE = path.join(process.env.APPDATA, 'Microsoft', 'Network', 'Connections', 'pbk', 'rasphone.pbk') | |
| const REGISTRY_PATH_LOCAL_NETWORK = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings' | |
| const REGISTRY_PATH_CONNECTIONS = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Connections' | |
| const changeLocalNetwork = (value) => { |
| # Greet to cd | |
| cd() { | |
| builtin cd "$1" | |
| DIR=`pwd` | |
| if [ -f "${DIR}/.greet" ]; then | |
| bash ${DIR}/.greet | |
| fi | |
| } |
| import { createAction } from 'redux/RestModule'; | |
| import RestClient, { AccessTokenInterceptor } from './Restful'; | |
| // Create Post modal | |
| const Post = RestClient.all('posts'); | |
| Post.addRequestInterceptor(AccessTokenInterceptor); | |
| export const fetchPosts = createAction({ | |
| type: 'POSTS_FETCH', | |
| request: () => Post.getAll, |
| const DAY = 24 * 60 * 60; | |
| const HOUR = 60 * 60; | |
| const MINUTES = 60; | |
| let ds, hs, ms, ss; | |
| // day | |
| if (duration >= DAY) { | |
| ds = Math.floor(duration / DAY); | |
| } |