Skip to content

Instantly share code, notes, and snippets.

View jtomchak's full-sized avatar
🐋
Chippin' away at it

Jesse Tomchak jtomchak

🐋
Chippin' away at it
View GitHub Profile
import {
chakra,
forwardRef,
SystemStyleObject,
useStyles,
useTheme,
HTMLChakraProps,
} from '@chakra-ui/system';
import { Slide, SlideOptions } from '@chakra-ui/transition';
import { cx, __DEV__ } from '@chakra-ui/utils';
import { render, fireEvent, waitFor } from 'test-utils';
import { MockedProvider } from '@apollo/client/testing';
import ChatInput, { ADD_MESSAGE } from './ChatInput';
let resultCalled = false;
const addMessage = {
date_created: new Date(),
user: 'testUser',
message: 'chat input test message',
index: 0,
/**
* Can override any general styles set for jam content"
* in the `styled(Box)` -->
* */
const Content = chakra('div', {
baseStyle: {
width: ['90%', null, null, '75%'],
'h1, h2': {
margin: '0px auto 20px',
import { RequestOptions, RESTDataSource } from 'apollo-datasource-rest';
import { ApolloError, AuthenticationError } from 'apollo-server';
import axios from 'axios';
import util from 'util';
import { Event, Speaker } from '../generated/graphql';
import {
KlikAttendee,
KlikCalendar,
KlikCalendarDefinition,
KlikCarousel,
@jtomchak
jtomchak / scheme.8.5.graphql
Created August 5, 2021 21:10
What we're sort of looking for
input AttendeesFilter {
email: EmailAddress
firstName: String
lastName: String
}
input Pagination {
cursor: String
perPage: Int
}
@jtomchak
jtomchak / _app.js
Last active October 5, 2021 15:44
Onboarding Check and reroute
import Head from 'next/head';
import 'styles/globals.css';
import { Nav, RouteGuard } from 'components';
export default App;
function App({ Component, pageProps }) {
return (
<>
<body>
<center class="wrapper" data-link-color="#1188E6" data-body-style="font-size:14px; font-family:arial,helvetica,sans-serif; color:#000000; background-color:#FFFFFF;">
<div class="webkit">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="wrapper" bgcolor="#FFFFFF">
<tbody><tr>
<td valign="top" bgcolor="#FFFFFF" width="100%">
<table width="100%" role="content-container" class="outer" align="center" cellpadding="0" cellspacing="0" border="0">
<tbody><tr>
<td width="100%">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
@jtomchak
jtomchak / upload
Created March 22, 2022 15:35
Upload JSON file to micro.blog
"use strict";
const querystring = require("querystring");
const axios = require("axios");
let jsonData = require("./strapiOutput.json");
async function upload() {
const articles = jsonData.map((category) => {
category.articles.map((article) => {
console.log(article.title);
axios.post(
@jtomchak
jtomchak / error
Created March 23, 2022 17:02
Network Error
Export.tsx:109 Refused to connect to 'https://files.stripe.com/v1/files/file_1KgXNaAg7It2SgG9tWcgcCu9/contents' because it violates the following Content Security Policy directive: "connect-src http://localhost:* localhost:* https://accounts.google.com/o/oauth2/auth".
(anonymous) @ Export.tsx:109
(anonymous) @ ext.js:85
__async @ ext.js:69
retrieveFile @ Export.tsx:106
onAction @ Export.tsx:163
wrappedFunction @ dashboard.vendors~extension_runtime.b263e1c3980c4ae0db6d.min.js:1
call @ dashboard.vendors~extension_runtime~tailor.94fa392045531ad8ea6f.min.js:1
listener @ dashboard.vendors~extension_runtime~tailor.94fa392045531ad8ea6f.min.js:1
@jtomchak
jtomchak / DocuSign.ts
Created April 13, 2022 17:28
DocuSign Snippet
export const useEnvelopeDetailsQuery = (query?: QueryParams) => {
const fetchEnvelopeWithCredentials =
useFetchWithCredentials<EnvelopeResponse>();
const { queryString } = serializeQueryParams(query);
const { data: envelopeResponse, isLoading } = useQuery<
EnvelopeResponse,
ErrorDetails
>(
['envelopeDetails', queryString],
() =>