| // Example component that utilizes FormContext | |
| import React, { useContext } from "react"; | |
| import { FormContext } from "contexts.js"; | |
| export default function FirstNameInput() { | |
| const { form, setForm } = useContext(FormContext); | |
| const handleChange = key => event => { | |
| setForm({ ...form, [key]: event.target.value }); | |
| }; |
| import React, { Component } from "react"; | |
| import { withRouter, Redirect } from "react-router-dom"; | |
| import { Authenticator } from "aws-amplify-react"; | |
| import { Auth, Logger, JS } from "aws-amplify"; | |
| import { | |
| CustomSignIn, | |
| CustomSignUp, | |
| CustomConfirmSignIn, | |
| CustomConfirmSignUp, |
Started: 1.3.2017
- Fitness Tracker: https://github.com/kwhitejr/duff-boods-yars/
- CalcEngine Java Tutorial: https://github.com/kwhitejr/java-calcengine
- Added mocha/chai and test scripts
Let's read about a couple of the most common commands that you're going to use.
ls = "list directory"; lists all files and folders in the present working directory (where you currently are).
pwd = "present working directory"; tells you where you currently are!
cd foldername = "change directory"; switches to the directory named 'foldername'. 'foldername' is always a child of the pwd (present working directory).
1941 10th Ave Apt A, Honolulu, Hawaii, USA
[email protected] // (703) 638-0038
[Portfolio] (http://kwhitejr.com "Visit Kevin's Portfolio Site!")
GitHub
LinkedIn
AngelList
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demoThis Gist outlines the gulp workflow that will:
- watch for any scss changes, then compiles scss source into css
- watch for any changes in the public directory, and trigger live-reload
- serve static content in
public/
This Gist also assumes you already know how to install npm modules, gitignore, create directories and create files via the command line.
###Email Hell
We just found out that there is a bug in production that our e-mail function was iterating errantly and sending duplicate e-mails to many users. We need to fix this quickly but we don't want to send out a mass apology letter to all of our users.
Our sysadmin gave us the SMTP logs and we need to process the logs and identify which users received multiple e-mails so that we can directly send them a follow up e-mail explaining the situation and offer super cool swag to keep them on as customers.
Also, the boss wants this done ASAP, we don't have time to do this manually...HAAALLLLPPP!
###The Fix
###Good Morning Agents
Your challenge this morning is to create a function that implements an algorithm using the concepts we've covered this week.
###Challenge
- Write an algorithm that takes in 2 strings as parameters (source, find).
- Your function should return true if the string passed in as the
findparameter is found in thesourceparameter ifsourcewere circular in nature. Meaning there is no end to thesourcestring. - Important: A match would be true if the word to find is partially at the end of the word and at the beginning in sequence.
Ex.