- Read the short React guide on Components and Props
- Read the short React guide on State and
Lifecycle stopping when
you get to the
Adding Lifecycle Methods to a Class
section (the rest isn't relevant for this portion of work) - In
index.js
, turnAwardeeMap
into a class-based React component - Initialize a
state
attribute, an object containing amarkers
array,
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
{ | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": [ | |
"j", | |
"k" | |
], | |
"after": [ |
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 { Component, Fragment } from 'react' | |
import { Authenticator } from 'aws-amplify-react' | |
import CustomHeaderBar from './custom-header-bar' | |
// Override authentication wrapper to use custom header bar | |
// based on: | |
// https://github.com/aws-amplify/amplify-js/blob/master/packages/aws-amplify-react/src/Auth/index.jsx | |
export default function withAuthenticator (Comp, includeGreetings = false, | |
authenticatorComponents = [], federated = null, theme = null, signUpConfig = {}) { |
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
vagrant@vagrant:/vagrant$ docker-compose run --rm --service-ports --entrypoint python ahoy manage.py runserver | |
Starting vagrant_database_1_2a9986757068 ... done | |
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7fa2b51c32f0> | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper | |
fn(*args, **kwargs) | |
File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 112, in inner_run | |
autoreload.raise_last_exception() | |
File "/usr/local/lib/python3.6/site-packages/django/utils/autoreload.py", line 248, in raise_last_exception | |
raise _exception[1] |
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
#!/usr/bin/env python3 | |
import unittest | |
import json | |
import io | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from urllib.error import HTTPError | |
from urllib.request import urlopen | |
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
(define (crackle-pop) | |
(define (iter n) | |
(let ((divisible-by-3 (= 0 (remainder n 3))) | |
(divisible-by-5 (= 0 (remainder n 5)))) | |
(cond ((> n 100) "Done printing CracklePop :~)") | |
(else | |
(cond ((or divisible-by-3 divisible-by-5) | |
(if divisible-by-3 (display "Crackle")) | |
(if divisible-by-5 (display "Pop"))) | |
(else (display n))) |
This guide addresses the selection bugs that caused the Where to Buy Profiles and Priorities to not interact properly with one another.
The first thing you'll have to do is tweak a little bit of HTML in index.html
. Instead of using JS to click on the "City Family" profile, I changed it so that it has the proper classes to look "pre-selected." Find this code block:
<div class="carousel-cell text-center is-selected" id="city-home">