Александр Усков, tg: octaharon
Babel демонстрирует, как асинхронный код можно сделать синхронным при помощи машины Мура и статического анализа.
Александр Усков, tg: octaharon
Babel демонстрирует, как асинхронный код можно сделать синхронным при помощи машины Мура и статического анализа.
// ==UserScript== | |
// @name Slack filter messages by UID | |
// @namespace Slack | |
// @version 0.1 | |
// @description removes messages from unwanted people in slack channels and threads, or replaces them with kittens | |
// @author Octaharon <Alexander Uskov> | |
// @include https://app.slack.com/client/* | |
// @grant none | |
// ==/UserScript== |
const consoleOverride = { | |
'log': options.debug && options.verbose, | |
'debug': options.debug, | |
'info': options.verbose | |
} | |
Object.keys(consoleOverride).forEach(cmd => { | |
let oldMethod = console[cmd].bind(console); | |
console[cmd] = function (...args) { | |
if (consoleOverride[cmd]) |
export class multiClass { | |
// Inherit method to create base classes. | |
static inherit(..._bases) { | |
class classes { | |
// The base classes | |
get base() { | |
return _bases; | |
} |