Skip to content

Instantly share code, notes, and snippets.

View goleary's full-sized avatar
💭
building things

Gabe O'Leary goleary

💭
building things
View GitHub Profile
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 () {
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;
@goleary
goleary / twitter-api-client-v2-search
Created April 1, 2021 01:23
twitter-api-client search v2
@goleary
goleary / machine.js
Created December 23, 2020 03:33
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@goleary
goleary / ConfirmDialog.jsx
Created May 29, 2020 16:39
Customizable dialog built on top of Material-UI
import React, { useState } from "react";
import PropTypes from "prop-types";
import {
Button,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
IconButton,
makeStyles,