import "./formik-demo.css";
import React from "react";
import { render } from "react-dom";
import { Formik, Field } from "formik";
import Yup from "yup";
import classNames from "classnames";
// Input feedback
- TechStacks/Language | |
- Javascript | |
- https://github.com/ganqqwerty/123-Essential-JavaScript-Interview-Questions | |
- https://www.toptal.com/javascript/10-most-common-javascript-mistakes | |
- https://www.toptal.com/javascript/interview-questions | |
- https://medium.com/javascript-in-plain-english/js-engine-and-optimization-dac1f7fcb87d | |
- https://www.freecodecamp.org/news/javascript-essentials-why-you-should-know-how-the-engine-works-c2cc0d321553/ | |
- https://github.com/yangshun/front-end-interview-handbook | |
- lexical scoping | |
- React 16 |
- TechStacks/Language | |
- Javascript | |
- https://github.com/ganqqwerty/123-Essential-JavaScript-Interview-Questions | |
- https://www.toptal.com/javascript/10-most-common-javascript-mistakes | |
- https://www.toptal.com/javascript/interview-questions | |
- https://medium.com/javascript-in-plain-english/js-engine-and-optimization-dac1f7fcb87d | |
- https://www.freecodecamp.org/news/javascript-essentials-why-you-should-know-how-the-engine-works-c2cc0d321553/ | |
- https://github.com/yangshun/front-end-interview-handbook | |
- lexical scoping | |
- React 16 |
import { useState } from 'react' | |
const useForceUpdate = () => { | |
const [, setState] = useState() | |
return setState | |
} | |
export default useForceUpdate |
In your command-line run the following commands:
brew doctor
brew update
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<h2>Hello from outside the Shadow DOM!</h2> | |
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache |
#!/usr/bin/env ruby | |
print "What is the URL of your Apple Downloads resource?\nURL:" | |
url = gets.strip | |
print "What is the ADCDownloadAuth cookie token:\nADCDownloadAuth: " | |
token = gets.strip | |
command = "aria2c --header \"Host: adcdownload.apple.com\" --header \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" --header \"Upgrade-Insecure-Requests: 1\" --header \"Cookie: ADCDownloadAuth=#{token}\" --header \"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1\" --header \"Accept-Language: en-us\" -x 16 -s 16 #{url} -d ~/Downloads" |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32: