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
! name: NF | |
! description: Removes Reddit and Quora from search results permanently. | |
! public: true | |
! author: ladvace | |
! avatar: #ff6600 | |
$discard,site=reddit.com | |
$discard,site=www.reddit.com | |
$discard,site=old.reddit.com |
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
! name: No Reddit | |
! description: Removes all Reddit domains and threads from search results. | |
! public: true | |
! author: Goggles 101 | |
! avatar: #ff4500 | |
$discard,site=reddit.com | |
$discard,site=www.reddit.com | |
$discard,site=old.reddit.com | |
$discard,site=amp.reddit.com |
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
<html> | |
<head> | |
<title>Party Coffee Cake</title> | |
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org/", | |
"@type": "Recipe", | |
"name": "Party Coffee Cake", | |
"author": { | |
"@type": "Person", |
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
<html> | |
<head> | |
<title>Party Coffee Cake</title> | |
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org/", | |
"@type": "Recipe", | |
"name": "Party Coffee Cake", | |
"author": { | |
"@type": "Person", |
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
Symbol('bar') === Symbol('bar') // false, each of them it's a unique id, the "bar" it's just a description and not an unique key | |
Symbol.for('foo'); // create a new global symbol | |
Symbol.for('foo'); // retrieve the already created symbol | |
Symbol.for('bar') === Symbol.for('bar') // true |
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 obj = {} | |
const symbol1 = Symbol("a") | |
const symbol2 = Symbol("a") | |
const sharedSymbol = Symbol.for('b') | |
obj[symbol1] = 'a' | |
obj[sharedSymbol] = 'b' | |
obj['c'] = 'c' |
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 } from 'react' | |
export const Component = ({name, age}) => { | |
return ( | |
<div> | |
<h2>{name}</h2> | |
<p>{age}</p> | |
</div> | |
) |
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 } from 'react' | |
export const Component = (props) => { | |
return ( | |
<div> | |
<p>{props.name}</p> | |
<p>{props.surname}</p> | |
<p>{props.age}</p> | |
<p>{props.location}</p> |
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 } from 'react' | |
export const Component = () => { | |
const [show, setShow] = useState(false) | |
const handleClick = () => { | |
setShow(prev => !prev) | |
} | |
return ( |
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 } from 'react' | |
export const Component = () => { | |
const [show, setShow] = useState(false) | |
const handleClick = () => { | |
setShow(prev => !prev) | |
} | |
return ( |
NewerOlder