Real unit test (isolation, no children render)
Calls:
- constructor
- render
BEGIN:VCALENDAR | |
VERSION:2.0 | |
CALSCALE:GREGORIAN | |
BEGIN:VEVENT | |
SUMMARY:Access-A-Ride Pickup | |
DTSTART;TZID=America/New_York:20130802T103400 | |
DTEND;TZID=America/New_York:20130802T110400 | |
LOCATION:1000 Broadway Ave.\, Brooklyn | |
DESCRIPTION: Access-A-Ride to 900 Jay St.\, Brooklyn | |
STATUS:CONFIRMED |
import speech from '@google-cloud/speech'; | |
import fs from 'fs'; | |
import dotenv from 'dotenv'; | |
dotenv.config(); | |
async function main() { | |
const client = new speech.SpeechClient(); | |
const config = { |
import { NextPageContext } from "next"; | |
const Error = ({ statusCode }) => { | |
return ( | |
<p> | |
{statusCode | |
? `An error ${statusCode} occurred on server` | |
: "An error occurred on client"} | |
</p> | |
); |
// Type definitions for react-table 7 | |
// Project: https://github.com/tannerlinsley/react-table#readme | |
// Definitions by: Grsmto <https://github.com/grsmto> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// TypeScript Version: 3.0 | |
declare module 'react-table' { | |
export type Cell = { | |
render: (type: string) => any; | |
getCellProps: () => any; | |
column: Column; |
/** | |
* useScroll React custom hook | |
* Usage: | |
* const { scrollX, scrollY, scrollDirection } = useScroll(); | |
*/ | |
import { useState, useEffect } from "react"; | |
export function useScroll() { | |
const [lastScrollTop, setLastScrollTop] = useState(0); |
import React from 'react'; | |
function onlyChild(children) { | |
return Array.isArray(children) ? children[0] : children; | |
} | |
export function combineContext(contexts) { | |
class Provider extends React.Component { | |
render() { | |
const init = this.props.children; |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :