Skip to content

Instantly share code, notes, and snippets.

View masiamj's full-sized avatar
😆
I was more naive than I am now

Mitch Masia masiamj

😆
I was more naive than I am now
  • Chicago, IL
View GitHub Profile
import { useMemo } from 'react'
import pipe from 'lodash/fp/pipe'
import omit from 'lodash/fp/omit'
import concat from 'lodash/concat'
import getOr from 'lodash/fp/getOr'
import isEqual from 'lodash/isEqual'
import filter from 'lodash/fp/filter'
import isObject from 'lodash/fp/isObject'
import { gql, useQuery } from '@apollo/client'
import { flattenSecurities, flattenSecurity } from '../../lib/data'

I like collecting wisdom/anecdotes/sayings/philosophies that I think are cool. Here's a few I like:

  • One of my life goals is to take fun very seriously

  • Don't do anything stupid - Bud

  • The more you do, the more you do; quad days are the game

  • Brevity is wit

import React, { Fragment } from 'react'
import {
CardStyleInterpolators,
createStackNavigator,
} from '@react-navigation/stack'
import MainNavigator from './MainNavigator'
import { magic } from '../lib/authentication'
import SearchNavigator from './SearchNavigator'
import AccountNavigator from './AccountNavigator'
import PricingPlans from '../screens/PricingPlans'
import _ from 'lodash'
import * as Network from 'expo-network'
import * as Segment from 'expo-analytics-segment'
import ExpoMixpanelAnalytics from '@eeon/expo-mixpanel-analytics'
import { env } from '../../../constants/environment'
const mixpanelClient = new ExpoMixpanelAnalytics(env.mixpanelAppToken)
const createDomainPrefixer = (domain) => (event) => `${domain}_${event}`
import pkg from '../../../package'
import _ from 'lodash'
import {
ApolloClient,
from,
HttpLink,
InMemoryCache,
split,
} from '@apollo/client'
import { onError } from '@apollo/link-error'
import React from 'react'
import { View } from 'react-native'
import { WebView } from 'react-native-webview'
type ShowVGSTextProps = {
token: string
cardId: string
copyable: boolean
height?: number
fontSize?: number
@masiamj
masiamj / svg-to-image.js
Last active March 17, 2021 17:01
SVGs to Images!
const fs = require("fs");
const axios = require("axios");
const svg2img = require("svg2img");
const getSVGSource = async (id) => {
const { data } = await axios.get(
`https://www-league.nhlstatic.com/images/logos/teams-current-primary-light/${id}.svg`
);
return data;
};
const express = require('express')
const get = require('lodash.get')
const keyBy = require('lodash.keyBy')
/**
* Initializes express application
* You should include whatever middleware you need here (cors, etc.)
*/
const app = express()
@masiamj
masiamj / interview-thoughts.md
Last active January 7, 2020 01:41
Thoughts on interviewing a new developer for the Steppingblocks engineering team.

Steppingblocks Developer Interview

I'd probably break this interview down into the goals of hiring someone:

  • Cares About the Craft
  • Immediately Productive
  • Computer Science Thinking

Cares About the Craft

# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- navigation ----------------------------------------------------------------
# if you're running tmux within iTerm2
# - and tmux is 1.9 or 1.9a