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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>system-entities</key> | |
<array> | |
<dict> | |
<key>dev-entry</key> | |
<string>/dev/disk3</string> | |
<key>mount-point</key> |
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 { AppThunk } from "../configureStore" | |
import { RootState } from "./reducer" | |
// appStatus.js | |
const GOOGLE = "google" | |
const MAPBOX = "mapbox" | |
// App Status Actions | |
export const APP_IS_LOADED = 'mapping/app/isLoaded' | |
export const APP_IS_THINKING = 'mapping/app/appIsThinking' |
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 { DirectionsResponse } from "@googlemaps/google-maps-services-js" | |
export const foo: DirectionsResponse = { status: 200, | |
statusText: 'OK', | |
headers: | |
{ 'content-type': 'application/json; charset=UTF-8', | |
date: 'Fri, 05 Jun 2020 22:25:12 GMT', | |
pragma: 'no-cache', | |
expires: 'Fri, 01 Jan 1990 00:00:00 GMT', | |
'cache-control': 'no-cache, must-revalidate', |
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 express from 'express'; | |
import FetchGoogleRoutes, { FetchRoutesParams } from './FetchGoogleRoutes'; | |
import { Client } from '@googlemaps/google-maps-services-js'; | |
class App { | |
public express: express.Application; | |
public fetch: FetchGoogleRoutes; | |
constructor() { |
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
parsePDFStatement = async () => { | |
try { | |
const pdfPath = this.setPDFPath(); | |
const loadingTask = this.pdf.getDocument(pdfPath); | |
await loadingTask.promise | |
.then((doc) => { | |
const { numPages } = doc; | |
console.log("# Document Loaded"); | |
console.log(`Number of Pages: ${numPages}`); | |
console.log(); |
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
window.google = { | |
maps: { | |
DirectionsService: class { | |
route() {} | |
}, | |
DirectionsStatus: { | |
INVALID_REQUEST: 'INVALID_REQUEST' as google.maps.DirectionsStatus.INVALID_REQUEST, | |
MAX_WAYPOINTS_EXCEEDED: 'MAX_WAYPOINTS_EXCEEDED' as google.maps.DirectionsStatus.MAX_WAYPOINTS_EXCEEDED, | |
NOT_FOUND: 'NOT_FOUND' as google.maps.DirectionsStatus.NOT_FOUND, | |
OK: 'OK' as google.maps.DirectionsStatus.OK, |
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
Show hidden characters
{ | |
"extends": "@tsconfig/node16/tsconfig.json", | |
"compilerOptions": { | |
"rootDir": "./", | |
"preserveConstEnums": true, | |
"lib": [ | |
"DOM" | |
], | |
"types": [ | |
"jest" |
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
{ | |
"root": true, | |
"env": { | |
"browser": false, | |
"es2021": true, | |
"jest": true | |
}, | |
"settings": { | |
"import/resolver": { | |
"node": { |
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 { config, DotenvConfigOutput, DotenvParseOutput } from "dotenv" | |
import { Err, Ok, Result } from "ts-results"; | |
export class AppConfiguration { | |
private static instance: AppConfiguration = new AppConfiguration() | |
private static requiredEnvVars = [ "GATEWAY_NS", "GOOGLE_API_KEY", "MONGODB_URI", "SECRET_KEY"] | |
private static envs = {} | |
private constructor() { | |
if(AppConfiguration.instance){ |
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 { config, DotenvConfigOutput, DotenvParseOutput } from "dotenv" | |
import { Err, Ok, Result } from "ts-results" | |
import Logger from "./logger" | |
export class AppConfiguration { | |
private static instance: AppConfiguration = new AppConfiguration() | |
private static requiredEnvVars: ReadonlyArray<string> = [ | |
"GATEWAY_NS", | |
"GOOGLE_API_KEY", | |
"GOOGLE_USER_EMAIL", |
OlderNewer