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
{ | |
"accessibility": { | |
"screenReaderEnabled": false, | |
"zoomLevel": 0 | |
}, | |
"allUnreads": { | |
"hasUnreads": false, | |
"hasUnreadThreads": false, | |
"threadsMentionCount": 0, | |
"threadsMentionCountByChannel": {} |
This file has been truncated, but you can view the full file.
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
{ | |
"abExperiments": { | |
"enableSpotlight": true, | |
"bucket[]": "pvs_ab_3-20-04-18", | |
"disablePP": true | |
}, | |
"anniversaryPage": { | |
"asyncStatus": "INIT" | |
}, | |
"autosuggest": { |
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 pr = (shouldResolve = true, time = 5000) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
console.log(`this promise is ${shouldResolve}`); | |
if (shouldResolve) { | |
resolve(); | |
} else { | |
reject(new Error('failed')); | |
} | |
}, time); |
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
<DragDropContext onDragEnd={this.onDragEnd}> | |
<Droppable droppableId={mover.id}> | |
{(provided, snapshot) => ( | |
<div ref={provided.innerRef} style={getListStyle(snapshot.isDraggingOver)}> | |
<List itemLayout="horizontal"> | |
{mover.list.map((item, index) => { | |
// test | |
if (item.format === 'folder') { | |
return ( | |
<List.Item key={item.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
[ | |
{ | |
"name": "Yellow C", | |
"code": { | |
"hex": "FEDD00", | |
"rgb": "rgb(254, 221, 0)" | |
} | |
}, | |
{ | |
"name": "Yellow 012 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
class EventEmitter { | |
constructor() { | |
this.listeners = new Map([['regular', new Map()], ['once', new Map()]]); | |
} | |
/** | |
* Register new events with listeners | |
* @param eventName | |
* @param callback | |
* @return {EventEmitter} |
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
{ | |
"javascript basics": "/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics", | |
"javascript first steps": "/en-US/docs/Learn/JavaScript/First_steps", | |
"javascript building blocks": "/en-US/docs/Learn/JavaScript/Building_blocks", | |
"introducing javascript objects": "/en-US/docs/Learn/JavaScript/Objects", | |
"introduction": "/en-US/docs/Web/JavaScript/Guide/Introduction", | |
"grammar and types": "/en-US/docs/Web/JavaScript/Guide/Grammar_and_Types", | |
"control flow and error handling": "/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling", | |
"loops and iteration": "/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration", | |
"functions": "/en-US/docs/Web/JavaScript/Guide/Functions", |
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": "Stateless function", | |
"code": "sf", | |
"src": "" | |
}, | |
{ | |
"name": "JSX spread attributes", | |
"code": "jsxsa", | |
"src": "" |
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 draggedElement = null; | |
let targetedElement = null; | |
function handleDragStart(event) { | |
event.dataTransfer.setData('text', event.target.parentNode.innerHTML); | |
} | |
function handleDrop(event) { | |
event.preventDefault(); | |
const src = event.dataTransfer.getData('text'); | |
const context = event.target; |
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
var allLinks = document.querySelectorAll('a') | |
var courseList = [...allLinks].filter((link) => { | |
const href = link.getAttribute('href'); | |
return href ? href.includes('complete-intro-react/'): false; | |
}) | |
var videoLinks= []; | |
var index = 0; | |
var int = setInterval(() => { |