Skip to content

Instantly share code, notes, and snippets.

View AlexKay28's full-sized avatar
:electron:
Focusing

Alexander Kaigorodov AlexKay28

:electron:
Focusing
View GitHub Profile
@AlexKay28
AlexKay28 / synth-decompose.svg
Created August 8, 2026 12:33
Synthesizer decomposition — extract/enrich/narrate architecture (for issue draft)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AlexKay28
AlexKay28 / pipeline.dot
Last active August 8, 2026 11:21
SolidSight backend pipeline (issue #113) — tldraw + SVG
// SolidSight backend pipeline — post-#107.
// Import into draw.io: Arrange → Insert → Advanced → From Text → Graphviz DOT → paste.
// Or render directly: `dot -Tsvg pipeline.dot -o pipeline.svg`.
//
// Shape:
// input -> {reddit, hn, trends, producthunt, analog_finder} -> aggregator -> synthesizer -> END
digraph SolidSightBackendPipeline {
rankdir = LR;
bgcolor = "#FFFFFF";
@AlexKay28
AlexKay28 / fasttext_model_reduce_dim.py
Last active November 5, 2021 15:24
Reduce fasttext model vector size
import fasttext
import fasttext.util
from argparse import ArgumentParser
# fasttext v0.9.2
# https://github.com/AlexKay28
def main(model_path, to_size, new_model_path):
"""
Reduce vectors size in fasttext model
@AlexKay28
AlexKay28 / getInOut_wrapper.py
Last active October 2, 2021 18:10
Get in-out wrapper for function
import os
def getInOut(orig_fun=None, path_in=None, path_out=None):
def _decorate(fun):
@functools.wraps(fun)
def wrapper(*args, **kwargs):
os.chdir(path_in)
fun(*args, **kwargs)
os.chdir(path_out)