This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a React component that render sheet-like table using canvas in my latest project. | |
// Only visible rows and columns would be renderred. This solution give blazing fast performance | |
// and minimal memory footprint. | |
import React, { useRef, useEffect, useMemo } from "react"; | |
import _ from "lodash"; | |
import { renderGrid } from "./grid"; | |
import { getRenderableContentCols, renderContentCells } from "./rows-content"; | |
import { renderPKCells } from "./primary-key-columns"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. |