Following the instructions from https://golang.org/doc/install
- Download https://golang.org/doc/install?download=go1.13.3.darwin-amd64.pkg
- Run installer
Following the instructions from https://golang.org/doc/install
| public float totalChange = 0; | |
| public float lastAzimuth = -1000; | |
| public int r_count = 0; | |
| private void FixedUpdate() | |
| { | |
| if (joycons.Count > 0) | |
| { | |
| Joycon j = joycons[jc_ind]; |
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { addNavigationHelpers } from 'react-navigation'; | |
| import { bindActionCreators } from 'redux'; | |
| import { connect } from 'react-redux'; | |
| // import DeviceInfo from 'react-native-device-info'; | |
| import Orientation from 'react-native-orientation'; | |
| import { ActionCreators } from '../redux/actions'; | |
| import AppNavigation from './AppNavigation'; | |
| import InitializingScreen from './InitializingScreen'; |
| let isRefreshing = false; | |
| let refreshSubscribers = []; | |
| const instance = axios.create({ | |
| baseURL: Config.API_URL, | |
| }); | |
| instance.interceptors.response.use(response => { | |
| return response; | |
| }, error => { |
| fetch(api.SEARCH_THE_ACCOUNT_ENDPOINT + "username=" + this.state.email, { | |
| method: 'GET', | |
| headers: { | |
| 'access_token': access_token | |
| }, | |
| // body: formBody | |
| }).then((response) => { | |
| if (response.status >= 200 && response.status < 300) { | |
| return response.json(); | |
| } else { |
| var apif1 = () => new Promise((resolve, reject) => { | |
| setTimeout(resolve, 1000, "one"); | |
| }); | |
| var apif2 = () => new Promise((resolve, reject) => { | |
| setTimeout(resolve, 2000, "two"); | |
| }); | |
| var apif3 = (values) => new Promise((resolve, reject) => { | |
| var flattened = values.reduce((acc, val) => acc.concat(val)); | |
| setTimeout(resolve, 3000, flattened); |
| db.accounts.findById(id, function(error, user) { | |
| //....AAAA | |
| db.accounts.useUsertoDo(user, function(error, something) { | |
| // use something to do something | |
| }); | |
| }); | |
| //------------------------------ | |
| var promise1 = db.accounts.findById(id); |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"