- Swift
- Objective-C
- C++/C
- JavaScript
- Mac OSX
- iOS
# Reference: | |
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/ | |
# install homebrew and cask | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install virtualbox | |
brew cask install virtualbox | |
# install dockertoolbox |
I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like Homebrew was a more convenient way to install.
The purpose of Homebrew is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands.
I used a clean installation of macOS Sierra to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial.
I’ve made this according to the installation instructions given on GetGrav.
export default function diff (parentNode, prevNodeMap, newNodeMap) { | |
let lastIndex = 0 | |
let lastRightNode = null | |
let patch = [] | |
let mountIndex = 0 | |
for (let name in newNodeMap) { | |
if (newNodeMap.hasOwnProperty(name)) { | |
let newNode = newNodeMap[name] | |
let prevNode = prevNodeMap[name] | |
if (prevNode) { |
yum -y update
yum -y install yum-utils
yum-config-manager --add-repo https://yum.dockerproject.org/repo/main/centos/7
yum -y update
# yum search --showduplicates docker-engine
yum -y --nogpgcheck install docker-engine-1.12.6-1.el7.centos.x86_64
service docker start
// Every chain has at least two API endpoints: 26657 (the Tendermint one, roughly | |
// speaking, lower level, deals with bytes, exposes info about blocks, consensus, | |
// validators, etc.) and 1317 (the Cosmos one, higher level, your chain's API). | |
// Since every transaction broadcasted to a chain should be signed (and you don't | |
// want to do the signing manually), it makes sense to use a signing library. | |
// For JS/TS it's CosmJS. | |
// With CosmJS you create a wallet from a mnemonic, create a client from a wallet, | |
// and use client.signAndBroadcast method to, well, sign and broadcast transaction | |
// (an array of messages from an address). The client uses 26657 endpoint under the |
Support for Cosmos SDK Stargate in CosmJS has been ongoing work for several months now. Stargate is released and CosmJS is here to connect to it.
Let's explore what is new for Stargate support: