Skip to content

Instantly share code, notes, and snippets.

View jbaxleyiii's full-sized avatar
💼
Moved to management

James Baxley jbaxleyiii

💼
Moved to management
View GitHub Profile
set nocompatible
set hidden
syntax enable
colorscheme norma
let g:airline_theme='bubblegum'
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
import gql from "graphql-tag";
export const UPLOAD_SCHEMA = gql`
mutation UploadSchema(
$id: ID!
$schema: IntrospectionSchemaInput!
$tag: String!
$gitContext: GitContextInput
) {
service(id: $id) {
import React from 'react';
import { ApolloConsumer } from 'react-apollo';
import Link from './Link';
const FilterLink = ({ filter, children }) => (
<ApolloConsumer>
{cache => (
<Link
onClick={() => cache.writeData({ data: { modal: { isOpen: true } })}
const { ApolloServer, gql, Connector } = require("apollo-server");
const users = [{ id: 1, firstName: "James" }];
class UserConnector {
getById(id) {
return users.find(user => user.id == id);
}
}
const Feed = () => (
<View style={styles.container}>
<Header />
<Query query={GET_DOGS}>
{({ loading, error, data, client }) => {
if (loading) return <Fetching />;
if (error) return <Error />;
return (
<DogList
const videoAssetWithDuration = {
args: (source, args, context, info) => ({ id: source.id }),
fetcher: (id) => fetch(`/api/v1/assets/${id}`),
definition: gql`
fragment VideoAssetWithDuration($id: ID) on Asset {
title
description
metdata {
date
info
const { createServer } = require("http");
const { create } = require("./lib/js/re/server.js");
const config = require("./database");
const PORT = process.env.PORT || 4000;
createServer(create(config[process.env.UP_STAGE || "local"])).listen(
PORT,
() => {
console.log(`started on port ${PORT}`);
}
{
"aggregate": {
"timestamp": "2018-03-07T15:31:27.676Z",
"scenariosCreated": 1200,
"scenariosCompleted": 1200,
"requestsCompleted": 1200,
"latency": {
"min": 2.7,
"max": 66.6,
"median": 4.1,