Skip to content

Instantly share code, notes, and snippets.

View justinwaite's full-sized avatar

Justin Waite justinwaite

View GitHub Profile
declare module '@easypost/api' {
type DeepPartial<T> = {
[P in keyof T]?: DeepPartial<T[P]>;
};
export interface IFieldError {
/**
* Field of the request that the error describes
*/
field: string;
@justinwaite
justinwaite / abi.json
Created July 29, 2019 18:31
NOBS Distribution ABI
[
{
"constant": false,
"inputs": [
{
"name": "_recipient",
"type": "address[]"
},
{
"name": "amount",
@justinwaite
justinwaite / SignInScreen.js
Created May 15, 2018 19:50
AWS Amplify - Authenticating a user via facebook using React Native and Expo (identity pool, not user pool).
import Expo from "expo";
import { Auth } from "aws-amplify";
...
class SignInScreen extends React.Component {
...
loginWithFacebook = async () => {
@justinwaite
justinwaite / PiypNavControllerProvider.ts
Created January 27, 2018 01:54
Our implemented work-around for the lack of redirecting guard capabilities in Ionic navigation. It has some custom code for our use, but could be lifted to make something a bit more generic.
@Injectable()
export class PiypNavControllerProvider {
constructor(public authGuard: AuthGuardProvider) {
console.log('Hello PiypNavControllerProvider Provider');
}
/**
* Push a new Page onto the stack, provided that all Guard checks pass. If a guard prevents navigation, the guard
* will provide a redirect rule. When redirecting, an object containing the original destination will be passed into
/***********************************************************************
* Program:
* Lesson 08, Tic-Tac-Toe
* Summary:
* This program reads, displays, and writes a Tic-Tac-Toe board
************************************************************************/
#include <iostream>
#include <fstream>
#include <cassert>