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 React, { useState } from "react"; | |
import PropTypes from "prop-types"; | |
import { | |
Button, | |
Dialog, | |
DialogActions, | |
DialogContent, | |
DialogTitle, | |
IconButton, | |
makeStyles, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 axios, { AxiosInstance } from 'axios'; | |
import { TwitterClient as TwitterClientV1, Search } from 'twitter-api-client'; | |
type V2SearchParams = { | |
query: string; | |
fields?: string[]; | |
}; | |
export type Status = { | |
text: string; | |
id: string; |
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 functions from "firebase-functions"; | |
const cors = require("cors")({ origin: true }); | |
import plaidClient from "../clients/plaid"; | |
export const getInsLogo = functions.https.onRequest((req, res) => | |
cors(req, res, async () => { | |
const { id } = req.query; | |
if (!id || typeof id !== "string") { | |
res.status(400).send("malformed request, must provide institution id"); | |
return; |
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
/// <reference types="node" /> | |
declare module '@microlink/mql' { | |
export type WaitUntilEvent = 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'; | |
export type ScreenshotOptions = Partial<{ | |
background: string; | |
browser: 'light' | 'dark'; | |
click: string | string[]; | |
deviceScaleFactor: number; |
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 { readFileSync, writeFileSync } from "fs"; | |
import axios from "axios"; | |
import { parse } from "csv-parse"; | |
const records: [string, string][] = []; | |
// Initialize the parser | |
const parser = parse(); | |
// Use the readable stream api to consume records | |
parser.on("readable", async function () { |