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
static checkComment(comment: Comment): void { | |
function resetCompactMode() { // TODO: props mutation is bad | |
comment.compactMode = false; | |
} | |
const parent = comment.compactMode && comment.parent; | |
if (!parent) { return; } | |
if (parent.level === 1 || parent.children.length > 1) { |
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 spawnWorker(func) { | |
const response = `self.onmessage = () => postMessage( | |
(${func.toString()})() | |
)`; | |
const blob = new Blob([response], {type: 'application/javascript'}); | |
const worker = new Worker(URL.createObjectURL(blob)); | |
worker.onmessage = function (e) { | |
const data = e.data; |
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 keywords = ['recru', 'apply', 'looking for', 'hr', 'talent']; | |
const names = $('.mn-person-info__name'); | |
const positions = $('.mn-person-info__occupation'); | |
const dropdowns = $('.mn-connections__dropdown-trigger'); | |
const deleteButtonSelector = () => $('.mn-connections__dropdown-option-btn'); | |
const confirmButtonSelector = () => $('.remove-btn'); | |
let connections = {}; | |
for (let i = 0; i < names.length; i++) { |
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
$.map($('.branch-delete'), (val, i) => {return [val]}).forEach((el) => {el.click()}) |
NewerOlder