This file contains hidden or 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
" Make Vim more useful | |
set nocompatible | |
filetype off " required | |
set ttyfast | |
set lazyredraw | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins |
This file contains hidden or 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
" Make Vim more useful | |
set nocompatible | |
filetype off " required | |
set ttyfast | |
set lazyredraw | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins |
This file contains hidden or 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 parseParams(params) { | |
if (!params) { | |
return undefined | |
} | |
if (params['~id']) { | |
// it's a branch link, already parsed | |
return params | |
} | |
// parse whilapp:// link | |
const urlString = params['+non_branch_link'] || params['~referring_link'] |
This file contains hidden or 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
" Console log from insert mode; Puts focus inside parentheses | |
imap cll console.log()<Esc><S-f>(a | |
" Console log from visual mode on next line, puts visual selection inside parentheses | |
vmap cll yocll<Esc>p | |
" Console log from normal mode, inserted on next line with word your on inside parentheses | |
nmap cll yiwocll<Esc>p |
This file contains hidden or 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
service: serverless-expense-tracker | |
frameworkVersion: ">=1.1.0 <2.0.0" | |
provider: | |
name: aws | |
runtime: nodejs6.10 | |
environment: | |
EXPENSES_TABLE: "${self:service}-${opt:stage, self:provider.stage}-expenses" | |
BUDGETS_TABLE: "${self:service}-${opt:stage, self:provider.stage}-budgets" | |
This file contains hidden or 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
users: { | |
id: "UUID", | |
email: "string", | |
firstName: "string", | |
lastName: "string", | |
group: groupId | |
} | |
groups: { | |
id: "UUID", |
This file contains hidden or 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
// KPW | |
import webpack from 'webpack' | |
import HtmlWebpackPlugin from 'html-webpack-plugin' | |
import ExtractTextPlugin from 'extract-text-webpack-plugin' | |
import config from '../config' | |
import _debug from 'debug' | |
import newrelic_staging from './newrelic_staging' | |
import newrelic_prod from './newrelic_prod' | |
const debug = _debug('app:webpack:config') |
This file contains hidden or 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
// this one was in KPW | |
import { argv } from 'yargs' | |
import config from '../config' | |
import webpackConfig from './webpack.config' | |
import _debug from 'debug' | |
const debug = _debug('app:karma') | |
debug('Create configuration.') | |
module.exports = function(cfg) { |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[log sort algo]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
This file contains hidden or 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
// inside yr React component | |
componentDidMount: function() { | |
var el = this.getDOMNode(); | |
D3Chart.create(el, props); | |
}, | |
componentDidUpdate: function(prevProps, prevState) { | |
var el = this.getDOMNode(); | |
D3Chart.update(el, props); | |
}, |
NewerOlder