Skip to content

Instantly share code, notes, and snippets.

View mrparkers's full-sized avatar

Michael Parker mrparkers

View GitHub Profile
package main
import (
"fmt"
"github.com/grafeas/grafeas/proto/v1beta1/build_go_proto"
"github.com/grafeas/grafeas/proto/v1beta1/common_go_proto"
"github.com/grafeas/grafeas/proto/v1beta1/grafeas_go_proto"
"github.com/grafeas/grafeas/proto/v1beta1/provenance_go_proto"
"github.com/grafeas/grafeas/proto/v1beta1/source_go_proto"
)
#! /usr/bin/env bash
# works with aws-vault v4.6.4
credServerRunning=$(lsof -i tcp:9099 | wc -l | tr -d ' ')
if [[ "${credServerRunning}" != "0" ]]; then
echo "AWS Credential Server already running"
exit 1
fi
$ make up
Sending build context to Docker daemon 4.096kB
Step 1/10 : FROM google/cloud-sdk:262.0.0-alpine
---> 6a09bced8955
Step 2/10 : WORKDIR /usr/src
---> Using cache
---> 361408ec5ead
Step 3/10 : ARG TERRAFORM_VERSION="0.12.8"
---> Using cache
---> 5ead1e69ebd4

Keybase proof

I hereby claim:

  • I am mrparkers on github.
  • I am mrparkers (https://keybase.io/mrparkers) on keybase.
  • I have a public key ASBG_3v1gvBZc0mdjcw4zNcxFge3FGhJvfak50hMvGxWWgo

To claim this, I am signing this object:

import AsyncComponent from './path/to/component';
import request from 'your-request-library';
import React from 'react';
import {shallow} from 'enzyme';
import Chance from 'chance';
import chai, {expect} from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
@mrparkers
mrparkers / async-component.spec.js
Created August 4, 2016 00:43
Unit testing an async React component using Mocha, Chai, and Enzyme
import AsyncComponent from './path/to/component';
import request from 'your-request-library';
import React from 'react';
import {shallow} from 'enzyme';
import Chance from 'chance';
import chai, {expect} from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';