In your command-line run the following commands:
brew doctorbrew update
| #!/usr/bin/env bash | |
| # Abort sign off on any error | |
| set -e | |
| # Start the benchmark timer | |
| SECONDS=0 | |
| # Repository introspection | |
| OWNER=$(gh repo view --json owner --jq .owner.login) |
| import { useEffect, useState } from 'react' | |
| interface HookResultIdleState { | |
| state: 'idle' | |
| } | |
| interface HookResultLoadingState { | |
| state: 'loading' | |
| } |
| name: promote-dev-cool-package | |
| on: | |
| push: | |
| paths: | |
| - packages/cool-package/** | |
| branches-ignore: | |
| - master | |
| - refs/tags/* |
| // Add any other logic here as needed. | |
| import { CacheableResponsePlugin } from 'workbox-cacheable-response/CacheableResponsePlugin'; | |
| import { CacheFirst } from 'workbox-strategies/CacheFirst'; | |
| import { createHandlerForURL } from 'workbox-precaching/createHandlerForURL'; | |
| import { ExpirationPlugin } from 'workbox-expiration/ExpirationPlugin'; | |
| import { NavigationRoute } from 'workbox-routing/NavigationRoute'; | |
| import { precacheAndRoute } from 'workbox-precaching/precacheAndRoute'; | |
| import { registerRoute } from 'workbox-routing/registerRoute'; |
In your command-line run the following commands:
brew doctorbrew update| machine: | |
| environment: | |
| PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" | |
| node: | |
| version: 7.10.0 | |
| dependencies: | |
| override: | |
| - yarn | |
| cache_directories: |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
My preferred code style is 2-space K&R. This is intended to provide a justification for this style.
K&R style has the following properties:
| defmodule MyBlog.Repo.Migrations.CreatePost do | |
| use Ecto.Migration | |
| def change do | |
| create table(:posts, primary_key: false) do | |
| add :id, :uuid, primary_key: true | |
| add :body, :string | |
| add :word_count, :integer | |
| timestamps |