Skip to content

Instantly share code, notes, and snippets.

View sergeysova's full-sized avatar
👋
Open to network

Sova sergeysova

👋
Open to network
View GitHub Profile
@sergeysova
sergeysova / README.md
Last active October 6, 2022 14:54
Size-compare for effector/size-compare

This is the readme file for the size-compare repo size check

import * as generator from '@babel/generator';
import * as t from '@babel/types';
import {createFilter} from '@rollup/pluginutils';
import changeCase from 'change-case';
import fs from 'fs';
import path from 'path';
import {optimize} from 'svgo';
import {fromXml} from 'xast-util-from-xml';
const generate = generator.default.default;
import { h, spec } from "forest";
export default function Icon(props = {}) {
h("svg", {
attr: {
"height": "32",
"width": "32",
"xml:space": "preserve",
"xmlns": "http://www.w3.org/2000/svg"
},
useEffect(() => {
const durationMs = parseDuration(duration ?? '');
if (durationMs && selectedToken) {
const durationSeconds = new Decimal(durationMs).div(1000);
const speedInYocto = new Decimal(amountToStream)
.div(durationSeconds)
.toFixed();
setValue('speed', speedInYocto);
module.exports = {
forbidden: [
{
name: "no-pages-on-pages",
severity: "warn",
comment: "Page MUST not depends on another page.",
from: { path: "^src/pages/([^/]+)/?.+", pathNot: "^src/pages/(routes|paths).ts" },
to: { path: "^src/pages/(?!$1)/?.+", pathNot: "^src/pages/(routes|paths).ts" },
},
{
const phrase = `
This, like a preacher, spoke Yevgeny.
Eyes blinded, as the salt tears choked,
Tatyana, breathless, uncomplaining,
Was listening to him as he spoke.
He gave his arm. Far from ecstatic,
With movements now called “automatic”,
She lent on him (nothing was said),
And languidly inclined her head.
The came back round the kitchen garden,
#!/usr/bin/env node
import fs from "fs/promises";
import path from "path";
import { fileURLToPath } from "url";
import { unified } from "unified";
import rehypeParse from "rehype-parse";
import { VFile } from "vfile";
import { write } from "to-vfile";
import generate from "@babel/generator";
export function WorkspacePaneTable(
props: WorkspacePaneProps<Workspace.WorkspaceItemHeaderTable>
) {
let [selectedId, setSelectedId] = React.useState<Data.Id | null>(null);
let catalog = Recoil.useRecoilValue(Data.$catalog);
let table = catalog.schema_tables[props.item.name];
let query = React.useMemo(() => createQuery(table), [table]);
let panes = State.usePanesAPI();
import {
allSettled,
attach,
createDomain,
createEvent,
createStore,
fork,
forward,
guard,
sample,