This file contains hidden or 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'); | |
| const fs = require('fs') | |
| const API_KEY = '[your google API key]' | |
| const COMMA = '%2C' | |
| const UNIT = 0.0001 // roughly 11.1 meters, +/- 5.55 m | |
| const queue = makeLocations([55.9446035, -3.1940965], 10, UNIT * 8) | |
| fs.writeFileSync('./data.csv', 'lat,lng,elevation\n') |
This file contains hidden or 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 { Observable, race, Subject, SubscribableOrPromise } from 'rxjs' | |
| import { debounce, filter } from 'rxjs/operators' | |
| describe('debounceUnlessCancelled', () => { | |
| let action: jest.Mock<string> | |
| let input: Subject<string> | |
| let cancel: Subject<void> | |
| let manualTrigger: Subject<string> | |
| beforeEach(() => { |
This file contains hidden or 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
| ˇÿˇ‡ JFIF H H ˇ˛ ,Optimized by JPEGmini 3.11.5.0 0x4a337109 ˇ€ C | |
| !'%!)/;3)-G=?CCCIOIAN;AC#ˇ€ C#++##################################################ˇ¿ " |