This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Append this to your ~/.bashrc or ~/.bash_profile | |
# Switch to a specified AWS profile globally | |
function aws_switch_profile() { | |
local profile=${1:-"default"} | |
export AWS_PROFILE="$profile" | |
} | |
# Setup autocomplete for the above command | |
setup_aws_profile_complete (){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { graphql } from 'react-apollo'; | |
import { gql } from 'graphql-tools'; | |
const QUERY = gql` | |
query MatchesByDate($date: Int) { | |
matches(date: $date) { | |
id | |
minute | |
period |