- Step away from the article for a day, then proof read a preview/draft. You'll catch awkward sentences and minor mistakes.
- It's good to be terse but don't be too vauge. It's worth explaining things in a little more detial.
- Adding character to your work is important. People don't connect with robots.
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
| const path = require('path') | |
| module.exports = { | |
| context: path.join(__dirname, 'src'), | |
| entry: './script/main.jsx', | |
| resolve: { | |
| extensions: ['', '.js', '.jsx', '.scss'], | |
| alias: { | |
| config: path.join(__dirname, 'src/config/dev.js'), | |
| }, |
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
| const CONFIG = { | |
| say: 'I am Development', | |
| } | |
| export default 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
| import AddTodo from '../containers/AddTodo' | |
| import Footer from './Footer' | |
| import React from 'react' | |
| import VisibleTodoList from '../containers/VisibleTodoList' | |
| import config from 'config' | |
| const App = () => ( | |
| <div> | |
| <h1>{config.say}</h1> | |
| <AddTodo /> |
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
Show hidden characters
| { | |
| "presets": [ "es2015", "react", "stage-1" ], | |
| "env": { | |
| "test": { | |
| "plugins": [ | |
| [ "babel-plugin-webpack-alias", { "config": "./webpack.config.js" } ] | |
| ] | |
| } | |
| } | |
| } |
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
| ################################################################ | |
| # Consul Catalog configuration backend | |
| ################################################################ | |
| [entryPoints] | |
| [entryPoints.http] | |
| address = ":80" | |
| # Enable web configuration backend | |
| [web] |
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
| FROM traefik:v1.4-alpine | |
| EXPOSE 8080 | |
| COPY traefik.toml /etc/traefik/traefik.toml |
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
| version: '2' | |
| services: | |
| consul: | |
| image: consul | |
| command: consul agent -server -dev -client=0.0.0.0 -ui -bootstrap -log-level warn | |
| ports: | |
| - "8400:8400" | |
| - "8500:8500" | |
| - "8600:53/udp" |
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
| #!/usr/bin/env bash | |
| APPSERVER_COUNT=$(aws ec2 describe-instances \ | |
| --region us-west-2 \ | |
| --filters "Name=tag:Environment,Values=production" "Name=tag:Name,Values=AppServer" "Name=instance-state-code,Values=16" \ | |
| | jq '.Reservations | length') | |
| curl -k -d $APPSERVER_COUNT -X PUT https://127.0.0.1:8500/v1/kv/prod/cluster/appserver_count |