Tasks
Current effect behavior
const fx = createEffect({
handler(params) {
console.log(params)
},
export function toposort( | |
rawGraph: Record<string, string[]>, | |
ignore?: Set<string> | |
) { | |
const graph = {} as Record<string, string[]> | |
for (const id in rawGraph) { | |
graph[id] = [...new Set(rawGraph[id])] | |
} | |
const result = [] as string[] | |
const visited = {} as Record<string, boolean> |
const express = require('express') | |
const {createStore, createEvent, sample} = require('effector') | |
const clientConnected = createEvent() | |
const statusRequested = createEvent() | |
const updateReceived = createEvent() | |
const clientClosed = createEvent() | |
const pushUpdate = createEvent() | |
const clients$ = createStore([]) | |
.on(clientConnected, (list, client) => [...list, client]) |
/* size variables */ | |
:root { | |
--md: 8px; | |
--md-2: calc(var(--md) * 2); | |
--md-3: calc(var(--md) * 3); | |
--md-4: calc(var(--md) * 4); | |
} | |
/* safe area defaults */ |
parcelRequire.registerBundle('e1095da0325446888ed16378b7e22c16', function() { | |
var e = | |
'undefined' != typeof globalThis | |
? globalThis | |
: 'undefined' != typeof self | |
? self | |
: 'undefined' != typeof window | |
? window | |
: 'undefined' != typeof global | |
? global |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() | |
const observer = new MutationObserver(function(mutationsList) { |
const keyStrUriSafe = | |
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$' | |
const baseReverseDic = {} | |
const charAt = (str, i) => str.charAt(i) | |
for (let i = 0; i < keyStrUriSafe.length; i++) { | |
baseReverseDic[charAt(keyStrUriSafe, i)] = i | |
} | |
console.log(decompress(localStorage.getItem('code-compressed'))) |
import { | |
createEvent, | |
createStore, | |
createEffect, | |
combine, | |
forward, | |
Effect, | |
Store, | |
Event, | |
step |
import { | |
createStore, | |
createEvent, | |
is, | |
clearNode, | |
forward, | |
sample, | |
Store, | |
Event, | |
launch |
Current effect behavior
const fx = createEffect({
handler(params) {
console.log(params)
},
{ | |
"type": "root", | |
"children": [ | |
{ | |
"type": "thematicBreak", | |
"position": { | |
"start": { | |
"line": 1, | |
"column": 1, | |
"offset": 0 |