node -r babel-register node.js
// can not
fontSize: '0.8em',
// can use
'font-size': '0.8em',
// px
fontSize: 16,
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
import express from 'express'; | |
import React from 'react'; | |
import { match, RouterContext } from 'react-router'; | |
import { renderToString } from 'react-dom/server'; | |
import routes from './routes'; | |
import config from './config'; | |
const app = express(); |
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
import gulp from 'gulp'; | |
import eslint from 'gulp-eslint'; | |
import babel from 'gulp-babel'; | |
import coffeelint from 'gulp-coffeelint'; | |
import uglify from 'gulp-uglify'; | |
import babelify from 'babelify'; | |
import browserify from 'browserify'; | |
import source from 'vinyl-source-stream'; | |
import transform from 'vinyl-transform'; |
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
import webpack from 'webpack'; | |
import path from 'path'; | |
import glob from 'glob'; | |
import nodeExternals from 'webpack-node-externals'; | |
import loaders from './webpack.loaders'; | |
const jsBasePath = path.resolve(__dirname, './'); | |
const targetDirectories = ['es']; |
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
#!/bin/sh | |
brew install nodenv yarn | |
nodenv install 6.7.0 | |
nodenv rehash | |
nodenv global 6.7.0 | |
echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(nodenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile |
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
export function isLogin() { | |
return async (dispatch) => { | |
try { | |
const user = await User.get('user'); | |
dispatch({ | |
type: actionTypes.LOADED, | |
isLoading: false, | |
isLogin: true, | |
user, | |
}); |
~/Dropbox/TextExpander/Settings.textexpander
or
~/Library/Application\ Support/TextExpander/Settings.textexpander
add
<key>forcePasteBundleIDs</key>
<array><string>org.vim.MacVim</string></array>
OlderNewer