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
/** | |
* These are snippets/functions of code used in another app to migrate meeting data from Central to | |
* an experimental database used by Central Query. | |
*/ | |
import { DateTime } from "luxon" | |
enum Weekdays { | |
MONDAY = 1, | |
TUESDAY, |
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
➜ move2gnucash git:(main) ✗ tree | |
. | |
├── LICENSE | |
├── Pipfile | |
├── Pipfile.lock | |
├── README.md | |
├── build | |
│ ├── bdist.macosx-12.0-x86_64 | |
│ └── lib | |
│ └── move2gnucash |
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
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.7.22) 21 AUG 2022 01:55 | |
entering extended mode | |
restricted \write18 enabled. | |
%&-line parsing enabled. | |
**main.tex | |
(./main.tex | |
LaTeX2e <2022-06-01> patch level 5 | |
L3 programming layer <2022-07-15> (/usr/local/texlive/2022/texmf-dist/tex/latex | |
/base/article.cls | |
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class |
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 * as MongoDB from "mongodb" | |
import { QuickenImportModel } from "./storage.types.js" | |
let db: MongoDB.Db | |
let quickenCollection: MongoDB.Collection<QuickenImportModel> | |
export const setupDatabaseServices = async () => { | |
const env = process.env.NODE_ENV || "development" | |
const isDevelopment = env === "development" || "test" |
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 { ParsedData } from "quicken-investment-parser/dist/QuickenInvestmentParser" | |
import { OkImpl } from "ts-results-es" | |
import { getMockReq, getMockRes } from "@jest-mock/express" | |
import { jest } from "@jest/globals" | |
beforeEach(() => { | |
jest.resetAllMocks() | |
}) |
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
// Type definitions for mongo-curry v0.1.1 | |
// Project: https://gitlab.com/Creplav/mongo-curry | |
// Definitions by: Tim Rohrer <https://github.com/tim-rohrer> | |
// Gratitude for: @BobobUnicorn#9999 in Discord The Coding Den | |
import * as MongoDB from "mongodb" | |
type FindAllItemsInCollection<TSchema> = | |
(collection: MongoDB.Colection<TSchema>) => () => Promise<MongoDB.WithId<TSchema>[]>; | |
type FindItemByIdInCollection<TSchema> = |
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
export enum CurrencyCode { | |
USD = 'USD', | |
CAD = 'CAD', | |
EUR = 'EUR', | |
AED = 'AED', | |
AFN = 'AFN', | |
ALL = 'ALL', | |
AMD = 'AMD', | |
ARS = 'ARS', | |
AUD = 'AUD', |
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", |
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
{ | |
"root": true, | |
"env": { | |
"browser": false, | |
"es2021": true, | |
"jest": true | |
}, | |
"settings": { | |
"import/resolver": { | |
"node": { |
NewerOlder