This file contains 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 axios = require('axios'); | |
axios({ | |
method: 'GET', | |
url: 'https://dev.portal.iphub.com.au/api/v1/auth/me', | |
headers: { | |
Authorization: 'bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvZGV2LnBvcnRhbC5pcGh1Yi5jb20uYXUiLCJhdWQiOiJodHRwczpcL1wvZGV2LnBvcnRhbC5pcGh1Yi5jb20uYXUiLCJpYXQiOjE1MTI3ODMzODQsIm5iZiI6MTUxMjc4MzM4NCwiZXhwIjoxNTEyNzg2OTg0LCJ1c2VybmFtZSI6ImhpbG9ib2tAZ21haWwuY29tIn0.CZndbUr7XkJzFR21k2wA9Xyir4-iAoImJTkrOnm8f0', | |
'Content-type':'application/json', | |
} | |
}) |
This file contains 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 { orderBy, sum } from 'lodash'; | |
export interface ILatLon { | |
/** 0 - 180 */ | |
latitude: number | |
/** 0 - 360 */ | |
longitude: number | |
} | |
export const distribute = (sites: ILatLon[], center: ILatLon, goalPercentages: number[]) => { |
This file has been truncated, but you can view the full file.
This file contains 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
/* tslint:disable */ | |
/** | |
* This file was automatically generated by json-schema-to-typescript. | |
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | |
* and run json-schema-to-typescript to regenerate this file. | |
*/ | |
/** | |
* Root schema of Signal K. Contains the list of vessels plus a reference to the local boat (also contained in the vessels list). | |
*/ |