\b(use)\w+
This file contains 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
import * as React from 'react' | |
import { useState, useEffect } from 'react' | |
import { Frame, addPropertyControls, ControlType } from 'framer' | |
import styled, { css } from 'styled-components' | |
interface Props { | |
padding?: number | |
paddingLeft?: number | |
color?: string | |
listBackgroundColor?: string |
This file contains 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
import * as React from 'react' | |
import ReactTable from 'react-table' | |
import { CSSCustomProperties, TableWrapper } from './TableWrapper' | |
interface Props { | |
rowSize?: string | number | |
} | |
export class Table extends React.Component<Props> { | |
static defaultProps = { |
This file contains 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
osascript -e 'id of app "Sketch"' | |
defaults write com.bohemiancoding.sketch3 NSRequiresAquaSystemAppearance -bool yes |
This file contains 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
import React, { Component } from 'react' | |
import { Route, withRouter } from 'react-router-dom' | |
const isModifiedEvent = event => !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) | |
type LinkContainerProps = { | |
history: { | |
push: (...args: any[]) => any, | |
replace: (...args: any[]) => any, | |
createHref: (...args: any[]) => any | |
}, | |
location?: object, |
This file contains 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
{ | |
"cardData": { | |
"indica": [{ | |
"brandName": "Paris OG", | |
"title": "Louis XIII OG", | |
"subtitle": "4.9", | |
"image": "https://images.weedmaps.com/products/000/019/694/avatar/original/1525137648-Louis_XIII_OG.jpg" | |
}, | |
{ | |
"brandName": "Kush Rush Exotics", |
This file contains 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
const isCanvasOrPreview = (source: any) => { | |
const searchLoop: (node: any) => 'canvas' | 'preview' = node => { | |
if (!node) return 'canvas' | |
if (node.key === 'preview') return 'preview' | |
return searchLoop(node._debugOwner) | |
} | |
return searchLoop(source._reactInternalFiber) | |
} |
This file contains 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
import * as React from 'react' | |
import { PropertyControls, ControlType } from 'framer' | |
interface WithPropertyControls<P> extends React.SFC<P> { | |
propertyControls?: PropertyControls | |
} | |
declare type RFC<P> = WithPropertyControls<P> | |
interface Props { |
This file contains 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
import React, { Component, useCallback, useState, useRef } from "react"; | |
import "./App.css"; | |
const imgUrl = require("./assets/iPhone-XS-Portrait-Space-Gray.png"); | |
const fullSize = { | |
width: 1325, | |
height: 2616 | |
}; |
This file contains 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
copy( | |
Array.from(document.querySelectorAll('p')).map(p => { | |
const t = p.innerText | |
return { | |
t | |
} | |
}) | |
) |