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
| ['css-loader', 'postcss-loader', 'sass-loader', 'resolve-url-loader'] |
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
| import React, { useState, useEffect } from 'react'; | |
| import Autocomplete from '@material-ui/lab/Autocomplete'; | |
| import TextField from '@material-ui/core/TextField'; | |
| const top100Films = [ | |
| { title: 'The Shawshank Redemption', year: 1994 }, | |
| { title: 'The Godfather', year: 1972 }, | |
| { title: 'The Godfather: Part II', year: 1974 }, | |
| { title: 'The Dark Knight', year: 2008 }, | |
| { title: '12 Angry Men', year: 1957 }, |
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
| let reg = /(width\s*:\s*(.*?)(\d+)px)|(height\s*:\s*(.*?)(\d+)px)/ig; | |
| // height:96px width:246px; height:96px width:246px height=96px width=246px height=96px width=246px |
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
| import React, {useState, useEffect, useRef} from 'react'; | |
| const DynamicRef = () => { | |
| const ref = useRef(); | |
| const [api, setApi] = useState({}); | |
| useEffect(() => { | |
| setApi(prev => ({...prev, loading: true})); | |
| fetch('https://reqres.in/api/unknown', {method: 'GET'}).then(res => res.json()).then(response => setApi(prev => ({ | |
| ...prev, | |
| response, |
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
| const userInformation = { | |
| author_id: 'your_auth_id', | |
| token: 'your_token', | |
| 'x-super-properties': 'your_x_super_properties', | |
| }; | |
| const deleteMessages = (messages, callback) => { | |
| for(let i = 0; i < messages.length; i++){ | |
| (function(ind) { | |
| let middleObj = messages[ind][2]; | |
| let channelId = middleObj.channel_id; |
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
| (function execute() { | |
| const keyDownEvent = (event) => { | |
| if (event.ctrlKey && event.key === "l") { | |
| start(); | |
| } | |
| if (event.ctrlKey && event.key === "o") { | |
| stop(); | |
| } | |
| if (event.ctrlKey && event.key === "m") { | |
| console.log("clearing previous script"); |