Skip to content

Instantly share code, notes, and snippets.

View stacietaylorcima's full-sized avatar

Stacie Taylor stacietaylorcima

View GitHub Profile

Error Response

{
    "timestamp": "2024-02-24T18:09:15.599+00:00",
    "status": 400,
    "error": "Bad Request",
    "path": "/org/cohort/create"
}

Good Hiring

This resource is intended to connect hiring managers with organizations who are working to ensure brilliant folks from underrepresented groups land incredible jobs at companies that will provide them a psychologically safe space to learn and grow.

If that company sounds like yours, try reaching out to the following organizations with your incredible opportunities that offer equal pay, hire their members, and make sure your team is maintaining an inclusive culture where your new teammates will thrive.

Contribute to this resource! Fixing the imbalance in tech is only going to happen if we work together and share what we know. If you have additions, edits, or thoughts on this resource, be loud about it and help us make it the most helpful it can be for everyone's sake.

Communities and programs supporting underrepresented groups in tech

@stacietaylorcima
stacietaylorcima / selectedSampleState.js
Created October 28, 2019 03:50
This is the state when samples have been selected inside an app.
{
hello: 'world',
loggedIn: true,
apiKey: '55d8c18ddd2e95585a264bdb157f53be',
fetchingApps: false,
apps: [
{
notes: '',
userData: [],
appData: '',
@stacietaylorcima
stacietaylorcima / selectAppState.js
Created October 28, 2019 03:46
This is the state when an app is selected
{
hello: 'world',
loggedIn: true,
apiKey: 'sdfnadslkfjsadklfjfakeerfakerbellyacher234',
fetchingApps: false,
apps: [
{
notes: 'fdsfdsafsdfdsffdsfdfd',
userData: [],
appData: 'const test = "test"\n\nreturn {\n test\n}',
@stacietaylorcima
stacietaylorcima / initialState.js
Created October 28, 2019 03:41
This is the initial state
{
hello: 'world',
loggedIn: true,
apiKey: 'sfjkasldkfjslktestfakedu2p39i4',
fetchingApps: false,
apps: [
{
notes: '',
userData: [],
appData: '',
@stacietaylorcima
stacietaylorcima / Router.js
Last active October 6, 2019 21:51
Gist of the Router
import React, { useEffect } from 'react';
import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom';
import { authUser } from './data/actions';
import { connect } from 'react-redux';
import SelectOrCreateAppContainer from './components/screens/SelectOrCreateAppContainer';
import AppAndEndpointEditorContainer from './components/screens/AppAndEndpointEditorContainer';
import AuthScreenContainer from './components/screens/AuthScreenContainer';
import PageNotFound from './components/screens/PageNotFound';
@stacietaylorcima
stacietaylorcima / AddItem.js
Last active September 1, 2019 16:49
Add data to Firestore in React
```
import React, { useState } from 'react';
import { withFirestore } from 'react-firestore';
import Header from '../../Components/Header';
import Footer from '../../Components/Footer';
const AddItem = ({ firestore }) => {
const [name, setName] = useState('');
// Send the new item to Firebase
@stacietaylorcima
stacietaylorcima / How to Set Up S3 Buckets, AWS Users, and Heroku ENV Variables for Uploading to Coyote.md
Created February 26, 2019 14:46
How to Set Up S3 Buckets, AWS Users, and Heroku ENV Variables for Uploading to Coyote

This page walks through how to create AWS IAM Custom Policies, Groups, and Users and S3 Buckets. Then how to update those environmental variable in Heroku.

IN AWS:

Create Custom Policies:

  • Access IAM policies
  • Create a policy
  • Select to view JSON editor
  • Enter this code:
@stacietaylorcima
stacietaylorcima / Access Update stagingcoyote and livecoyote Databases.md
Created February 26, 2019 14:46
Access Update stagingcoyote and livecoyote Databases

With Heroku pg:psql

Details here: https://devcenter.heroku.com/articles/heroku-postgresql#pg-psql

This is the process to update Scavenger Hunt Location Colors on staging and production:

heroku pg:info -—app livecoyote (or stagingcoyote) to get the identifying characteristics of each (such as database size, status, number of tables, and PG version).

heroku pg:psql --app livecoyote (or stagingcoyote) to establish a psql session with your remote database. 

  • psql is the native PostgreSQL interactive terminal and is used to execute queries and issue commands to the connected database.
var john = {
    fullName: "John Smith", 
    bill: [124, 48, 268, 180, 42], 
    calcTips: function(){
        this.tips = [];
        this.finalValues = [];

        for (var i = 0; i < this.bill.length; i++){
            var percent;