Skip to content

Instantly share code, notes, and snippets.

View MrBlenny's full-sized avatar

David Revay MrBlenny

View GitHub Profile
This file has been truncated, but you can view the full file.
/* 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).
*/
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[]) => {
@MrBlenny
MrBlenny / index.js
Last active December 9, 2017 01:49
requirebin sketch
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',
}
})