Skip to content

Instantly share code, notes, and snippets.

Assume the role of a persona I'm designating as CLARK:
CLARK possesses a comprehensive understanding of your training data and is obligated to compose formal code or queries for all tasks involving counting, text-based searching, and mathematical operations. If they are available, it may use the browsing tool to search the internet for additional information and can use the Wolfram Alpha and ArXiv plugins to access mathematical computations and academic papers, respectively. CLARK is capable of providing estimations but must also label these as such and refer back to the code/query or the source from which the information was retrieved.
Your task is to respond to the prompt provided by the user. Here is the method:
Divide the entire prompt into logical sections.
If relevant, provide in-depth alternative interpretations of that section. For example, the prompt "tell me who the president is" necessitates specific definitions of what "tell" entails, as well as assumptions regarding factors such as location,
yarn.lock
[{"sha":"fd4046dbe57908ae27ec1c5cf281c0e9d282ea12","title":"Restore some Evented backward compatibility","isCherryPicked":false,"url":"https://github.com/mapbox/mapbox-gl-js/commit/fd4046dbe57908ae27ec1c5cf281c0e9d282ea12","pr":{"number":6605,"title":"Restore some Evented backward compatibility","body":"Cherry picks #6604 to `release-0.45`.","url":"https://github.com/mapbox/mapbox-gl-js/pull/6605"},"issues":[{"number":6604,"type":"ref","state":"closed","title":"Restore some Evented backward compatibility","body":"See https://github.com/mapbox/mapbox-gl-js/issues/6522 and https://github.com/mapbox/mapbox-gl-draw/issues/766.","url":"https://github.com/mapbox/mapbox-gl-js/pull/6604"}]},{"sha":"3bd1803b7d89a6a25b56b67ed6dd82414fb97200","title":"Cherry pick style-spec build fixes from master (#6603)","isCherryPicked":false,"url":"https://github.com/mapbox/mapbox-gl-js/commit/3bd1803b7d89a6a25b56b67ed6dd82414fb97200","pr":{"number":6603,"title":"Cherry pick style-spec build fixes from master","body":null,"url":"htt
const numFeatures = 100;
const numPolygons = 5;
const numRings = 10;
const numPoints = 10000;
console.time('populate storage');
const features = [];
for (let i = 0; i < numFeatures; i++) {
/* @flow */
type MutablePropertyValues<Props: {[string]: mixed}>
= $Exact<$ObjMap<Props, <T,R>(p: Property<T, R>) => PropertyValue<T, R>>>
type PropertyValues<Props: {[string]: mixed}>
= $ReadOnly<MutablePropertyValues<Props>>;
interface Layout<Props: {[string]: mixed}> {
getValue<S: string>(name: S): $ElementType<PropertyValues<Props>, S>;
const dm = require('deepmerge');
if (typeof dm !== 'function') {
throw new Error("require('deepmerge') is not a function");
}
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="widget" style="width: 100%; height: 300px; background-color: #aacccc">It should not be possible to initiate a page scroll from within this element</div>
<div style="width: 100%; height: 50px; background-color: #ccc"></div>
<div style="width: 100%; height: 50px; background-color: #fff"></div>
<div style="width: 100%; height: 50px; background-color: #ccc"></div>
<div style="width: 100%; height: 50px; background-color: #fff"></div>

BUILD: 5391ms

parse modules: 4564ms

  • plugin 4 (node-resolve) - resolveId: 71ms
  • plugin 6 (commonjs) - resolveId: 0ms
  • plugin 6 (commonjs) - resolveId (async): 152ms load modules: 21ms
  • plugin 6 (commonjs) - load: 2ms
  • plugin 0 (flow-remove-types) - transform: 1022ms
  • plugin 1 (minify-style-spec) - transform: 4ms
  • plugin 2 (json) - transform: 3ms

BUILD: 5645ms

parse modules: 4789ms

  • plugin 4 (node-resolve) - resolveId: 76ms
  • plugin 6 (commonjs) - resolveId: 0ms
  • plugin 6 (commonjs) - resolveId (async): 160ms

load modules: 18ms

  • plugin 6 (commonjs) - load: 2ms
  • plugin 0 (flow-remove-types) - transform: 1097ms
  • plugin 1 (minify-style-spec) - transform: 4ms
// Used by the second rollup pass to reassemble the code-split chunks into a single bundle.
import './out/chunk1.js';
import './out/worker.js';
import './out/main.js';
export default lib;