Skip to content

Instantly share code, notes, and snippets.

View rxgx's full-sized avatar

Ryan Gasparini rxgx

View GitHub Profile
@rxgx
rxgx / BIO.md
Created December 16, 2020 22:03
My bio from website

Meet Ryan Gasparini. He's a Frontend Developer, Interface Designer, and Software Engineer from Portland, OR.

Mechanical execution, creative thinking

Early in life, Ryan Gasparini had a dream to design automobiles. As a child he made various drawings of cars and trucks on napkins, placemats, and notebooks. In high school, he elected to take classes in manual and computer-aided drafting. His passion and skill for drawing and drafting earned him many regional awards in Mechanical Drawing.

After graduation, he enrolled in university to pursue a degree in mechanical engineering. Unfortunately, not having any experience in the matter, he failed the shop and material classes. Surprisingly, though, when it came to computer programming, he was a natural. It was ultimately a C programming class that influenced him to change his career path.

Aside from drafting, Ryan spent many afternoons in the high school computer lab. He spent the majority of that time learning how to build a snowboarding page on Geocities. T

@rxgx
rxgx / inputUserMappings.xml
Last active December 25, 2020 21:43
Cyberpunk 2077 Keys for Left Hand
<?xml version="1.0"?>
<bindings>
<!-- MAPPINGS -->
<mapping name="LeftX_Axis" type="Axis" >
<button id="IK_Pad_LeftAxisX" />
<button id="IK_A" val="-1.0" overridableUI="left"/>
<button id="IK_D" val="1.0" overridableUI="right"/>
</mapping>
<mapping name="LeftY_Axis" type="Axis" >
@rxgx
rxgx / deploy.md
Created April 29, 2020 21:02
Deployment strategies

How to incrementally introduce functionality to micro-service-based deployments:

  • add new thing to data source (if needed)
  • use new thing to backend
  • use new thing in client
  • remove old thing in client
  • remove old thing from backend (as all client nodes have upgraded)
  • remove old thing from database (if data source changed, as all backend nodes have upgraded)

How to incrementally introduce functionality to environment-based deployments:

@rxgx
rxgx / merge-filter-branch.md
Last active August 18, 2021 19:08 — forked from trongthanh/gist:2779392
How to move a folder from one repo to another and keep its commit history
@rxgx
rxgx / config.yml
Created October 30, 2019 06:07
CircleCI config for json-calendar
version: 2.1
orbs:
codecov: codecov/codecov@1.0.5
executors:
nodejs:
docker:
- image: circleci/node:10.16
working_directory: ~/json-calendar
@rxgx
rxgx / Gateway.md
Created October 2, 2019 22:12
Graph as a Gateway

GraphQL as a Gateway Architecture Flow

Objectives

  • Create a promotion based deployment flow for clients, instances of graphs, and backend resolvers.
  • Each node in this network has the potential to be live but only those which are tested and reliable are production-worthy.
  • Data and the metal are always guaranteed to be the latest usable pieces of the platform.

Flow

@rxgx
rxgx / newWithHooks.ts
Last active September 18, 2019 05:46
Apollo HoC to Hooks
import React from 'react';
import { useQuery, QueryHookOptions } from '@apollo/react-hooks';
import ErrorBoundary from 'components/ErrorBoundary';
import PagePreloader from 'components/PagePreloader';
import getVendors from 'pages/Admin/queries/getVendors';
import VendorListTable from './VendorListTable';
const options: QueryHookOptions = {
fetchPolicy: 'no-cache',
variables: { isCorporate: true },
@rxgx
rxgx / client.js
Created August 22, 2019 20:00
GraphQL request client
import { GraphQLClient } from 'graphql-request';
import authn from 'clients/authn';
import config from 'config';
const accessToken = authn.getToken('access_token');
const idToken = authn.getToken('id_token');
const graphQLClient = new GraphQLClient(config.apiGatewayUrl, {
headers: {
Authorization: accessToken,
@rxgx
rxgx / authn.md
Last active September 6, 2019 23:33
SPA Authn Options