Real unit test (isolation, no children render)
Calls:
- constructor
- render
| # remotes::install_github("walkerke/mapgl") | |
| library(mapgl) | |
| # CYBERPUNK 2125 - Ultra-striking neon palette | |
| # Deep blacks + electric neons for that Blade Runner / Akira vibe | |
| cyberpunk_2125 <- c( | |
| "#000000", # Pure black (shadows) | |
| "#0a0e27", # Deep space blue (dark areas) | |
| "#1a1a2e", # Dark navy (buildings) | |
| "#16213e", # Midnight blue |
| 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; |