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
# Rust replacements | |
function find() { | |
echo $(dye -r WARN) Try using fd instead. >&2 | |
/usr/bin/find "$@" | |
} | |
function sed() { | |
echo $(dye -r WARN) Try using sd instead. >&2 | |
/usr/bin/sed "$@" | |
} |
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
cargo install just | |
cargo install --git https://github.com/kurtbuilds/req | |
cargo install --git https://github.com/kurtbuilds/sd | |
cargo install --git https://github.com/kurtbuilds/jq | |
cargo install --git https://github.com/kurtbuilds/watchexec-simple | |
cargo install modenv | |
cargo install checkexec | |
cargo install dye-cli | |
cargo install ormlite | |
cargo install --git https://github.com/kurtbuilds/toml-cli |
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 {Configuration, ModelError, PlaidApi, PlaidEnvironments} from "plaid"; | |
import axios, {AxiosRequestConfig, AxiosResponse} from 'axios' | |
import * as fs from 'fs/promises' | |
const ENV = process.env | |
const PLAID_ENV = ENV.PLAID_ENV! | |
export class PlaidError extends Error { | |
name = 'PlaidError' |
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
//Typescript version of Rust's Result type | |
interface IValue<T> { | |
type: 'value' | |
value: T | |
} | |
interface IError<E extends Error> { | |
type: 'error' | |
error: E | |
} |