Skip to content

Instantly share code, notes, and snippets.

View Fy50167's full-sized avatar

Francis Yang Fy50167

View GitHub Profile
export const findStreetCoordinates = () => {
cy.window().then((win) => {
const map = win.mapRef
if (!map) return []
// Get features for road names
const features = map.queryRenderedFeatures(undefined, {
layers: ['road-label-small', 'road-label-medium', 'road-label-large']
})
@Fy50167
Fy50167 / hex-code-regex.md
Last active October 7, 2023 10:35
Hex Code Regex Tutorial

Hex Value Regex Explanation

A brief gist explaining the various components that make up the Hex Code search regex.

Summary

Hex Code search regex:

/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/