This is what you should follow should your system crash & your external hard drive with your backups on it fail at the same time!
First scream FML!
Now proceed...
// @flow | |
import React, { Component } from 'react'; | |
import { | |
VirtualizedList, | |
View, | |
ScrollView, | |
StyleSheet, | |
// $FlowFixMe | |
findNodeHandle, |
$ code --list-extensions | |
abusaidm.html-snippets | |
ajhyndman.jslint | |
alefragnani.Bookmarks | |
alefragnani.project-manager | |
christian-kohler.npm-intellisense | |
christian-kohler.path-intellisense | |
mlewand.ck4-test-mate | |
cmstead.jsrefactor |
set autoindent | |
set autoread " Make Vim automatically open changed files | |
set background=dark | |
" set cinoptions=:0,(s,u0,U1 | |
set clipboard=unnamed | |
set colorcolumn=120 | |
set columns=130 | |
set copyindent | |
set cursorline | |
set directory^=$HOME/.vim/swp// |
/* @flow */ | |
// A simplified representation of types using phantom types (so that we store the Type information both at value and type level) | |
class Type<T> {}; | |
class StringT extends Type<string> {} | |
class NumberT extends Type<number> {} | |
// A schema for a User | |
const User = { | |
name: new StringT(), |
package example | |
import ( | |
"fmt" | |
"math/rand" | |
"net/http" | |
"google.golang.org/appengine" | |
"google.golang.org/appengine/file" | |
"google.golang.org/appengine/log" |
This documents how I integrate Vue 2.0 with Phoenix 1.x using the default brunch pipeline.
Start out by adding the vue-brunch plugin. You will need a version later than 1.2.3 in order to be able to use the extractCSS
option (see later). At the time of writing, 1.2.3 was still the version fetched by npm so I suggest just getting the tip of the dev
branch for now (this branch is for Vue 2.0 compatibility anyway):
npm install git+https://github.com/nblackburn/vue-brunch.git#dev --save-dev
// Place user-specific overrides in this file, to ensure they're preserved | |
// when upgrading | |
{ | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
} |