Skip to content

Instantly share code, notes, and snippets.

# This code is Apache 2 licensed:
# https://www.apache.org/licenses/LICENSE-2.0
import openai
import re
import httpx
import os
from dotenv import load_dotenv
load_dotenv()
@rgoldfinger
rgoldfinger / .zshrc
Last active January 18, 2019 03:51
git aliases
alias gco='git checkout'
alias gpr='git pull --rebase origin master'
alias gcb='git checkout -b'
alias gbd='git branch -D'
alias gl='git log'
alias gs='git status'
alias ga.='git add .'
alias ga='git add'
alias gpo='git push -f origin'
alias gcm='git commit -m '

What do I want?

I want to work with people who are smarter and more effective than me.

I want to move quickly but deliberately. To be thoughtful in what we do, and extremely efficient in how we do.

I want to ensure fairness and equality. I believe that most humans are trying to to do the right thing, but unconscious bias leads them astray. I work hard to understand and address my biases because I understand their ability to create inequity.

(I am failing in a lot of these areas. I would love your feedback on how I can do better.)

Keybase proof

I hereby claim:

  • I am rgoldfinger on github.
  • I am rgoldfinger (https://keybase.io/rgoldfinger) on keybase.
  • I have a public key whose fingerprint is FE41 D4E5 08C6 10EF FBCA 8E7F F6D0 675D 91BE 3E4F

To claim this, I am signing this object:

#!/usr/bin/env node
const fs = require('mz/fs');
const markdownTable = require('markdown-table');
const { spawnSync } = require('child_process');
const { memoize } = require('lodash');
const BASE = '.';
const audits = new Map();
const blacklistDirs = [
// --------------------------------------------------
// rollbar.ejs
// --------------------------------------------------
<%_ if (!__DEV__ && !__FUNCTIONAL__) { _%>
<script>
var _rollbarConfig = {
accessToken: "37c613c5a8b34fba89cd4fcfebc76808",
captureUncaught: true,
captureUnhandledRejections: true,
reportLevel: 'error',
<%_ if (!__DEV__ && !__FUNCTIONAL__) { _%>
<script>
var _rollbarConfig = {
accessToken: "xyz",
captureUncaught: true,
captureUnhandledRejections: true,
reportLevel: 'error',
payload: {
environment: '<%= ROLLBAR_ENVIRONMENT %>',
release: '<%= VERSION %>',
/* @flow weak */
import { transform, checkIgnore } from '../setupErrorLogging';
describe('setupErrorLogging', () => {
const errorsToSend = [
{
body: {
trace: {
exception: {
message: 'Received 401 after finding a window user',
/* @flow */
import idx from 'idx';
const regexsToIgnore = [
/Request blocked by client, probably adblock.*Branch/gi, // Branch init
/Request timed out.*Branch/gi, // Branch init
/GoogleAPI.*popup_closed_by_user/gi, // google auth
/GoogleAPI.*access_denied/gi, // google auth
/unhandled rejection was null or undefined/gi,
/script error/gi,
/* @flow */
import idx from 'idx';
if (typeof window !== 'undefined' && window.Rollbar) {
// TODO some way to disable console output. This seems to require a PR to rollbar's lib.
const { Rollbar } = window;
const nativeConsoleError = console.error;
// $FlowFixMe
console.error = (...args) => {
// If there's an error passed to the console, we want to use thar directly to preserve the stacktrace