$ influx
CREATE DATABASE foo
| import React from 'react'; | |
| import {Provider} from 'mobx-react'; | |
| const stub = () => true; | |
| export const exampleStore = { | |
| app: {}, | |
| auth: { | |
| checkAuth: stub | |
| }, |
| // FP Lenses | |
| const lens = get => set => ({ get, set }); | |
| const view = lens => obj => lens.get(obj); | |
| const set = lens => val => obj => lens.set(val)(obj); | |
| const over = lens => fn => obj => set(lens)(fn(view(lens)(obj)))(obj); | |
| const lensProp = key => lens(prop(key))(assoc(key)); |
Get started • • BigchainDB
Kadena: Scalable Blockchain | Smarter Contracts
kadena-io/pact: The Pact Smart Contract Language
| # Step 1 : Start minio server with non-persistent data storage policy | |
| # | |
| # Description: -p 9000:9000: Minio server runs on port 9000 inside the docker container, -e 9000:9000 command is exposing the internal port on | |
| # on external port. | |
| # | |
| # -e "MINIO_ACCESS_KEY=access_key": It sets an envrionment variable inside container named as MINIO_ACCESS_KEY | |
| # with the value provided by user. It will be used when a user wants to access | |
| # minio server | |
| # | |
| # -e "MINIO_SECRET_KEY=access_key_secret": It sets an envrionment variable inside container named as MINIO_SECRET_KEY |
| package crypto | |
| import ( | |
| "crypto/sha256" | |
| ) | |
| // NewSHA256 ... | |
| func NewSHA256(data []byte) []byte { | |
| hash := sha256.Sum256(data) | |
| return hash[:] |
PlantUML is a really awesome way to create diagrams by writing code instead of drawing and dragging visual elements. Markdown is a really nice documentation tool.
Here's how I combine the two, to create docs with embedded diagrams.
Get the command-line PlantUML from the download page or your relevant package manager.