Lunch&Learn | 2019-03-26
To make a module's (i.e. a script's) methods or variables useable by another module, export them:
Adding Lifecycle Methods to a Class
section (the rest
isn't relevant for this portion of work)index.js
, turn AwardeeMap
into a class-based React componentstate
attribute, an object containing a markers
array,{ | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": [ | |
"j", | |
"k" | |
], | |
"after": [ |
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 = {}) { |
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] |
#!/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 | |
(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">