Skip to content

Instantly share code, notes, and snippets.

const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const { createBundleRenderer } = require('vue-server-renderer');
const clientConfig = require('./build/webpack.client.config');
const serverConfig = require('./build/webpack.server.config');
const clientCompiler = webpack(clientConfig);
const serverCompiler = webpack(serverConfig);
const app = require('express')();
const gf = <B, C extends B>(fn: (x: B) => x is C): (x: B) => x is C => {
return ((x: B) => fn(x)) as (x: B) => x is C;
}
const isString = gf<any, string>((x): x is string => typeof x === 'string');
@alexklyuev
alexklyuev / vim_config_0.txt
Created December 12, 2013 16:12
vim 2 space indentation and netrw on.
set nocompatible
set expandtab
set tabstop=2
set shiftwidth=2
set autoindent
set smartindent
filetype plugin on