Skip to content

Instantly share code, notes, and snippets.

View andriytyurnikov's full-sized avatar

Andriy Tyurnikov andriytyurnikov

View GitHub Profile
@andriytyurnikov
andriytyurnikov / sane_badge.rb
Last active April 15, 2024 11:53
badge helper
def sane_badge(color:, &block)
color = color
color_classes = case color
when :red, :green, :blue
"border-#{color}-border text-#{color}-text"
end
default_classes = "whatever"
@andriytyurnikov
andriytyurnikov / cost.md
Last active February 23, 2024 16:42
Marketplace participation cost scenarios

Setting: 10 buyers, 10 sellers, NO seller profile notification, NO offer rejection notification

Persona: Buyer

Effort: 1 order per month per Buyer Total effort for all Buyers: 10 orders Visits: 2-10 - create order, see offer, react

Total visits by all buyers: 20-200

Persona: Seller

Effort: 10 offers per month per Seller Visits: 30+ , untill order is found, then to create offer, then to check for result, then wait for next offer

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andriytyurnikov
andriytyurnikov / NO_INFO_LOSS.md
Created October 10, 2023 15:30
Design of systems without loss of information.

Design of information systems without loss of information

Problem: Traditional systems built on RDBMS suffer from loss of (potentially valuable) information. Information system, is a system which recieves Inputs, Transforms them somehow, and then stores derived State. It is important to highlight, that while system evolves schema of Inputs may change, code of Transformers may change, and State may change.

Solutions:

@andriytyurnikov
andriytyurnikov / ds_failures.txt
Last active September 15, 2021 14:39
Design Systems as single source of truth: common failures.
Design Systems as single source of truth: common failures.
TLDR:
Names should be practically unambiguous.
Namespacing should be based on rules - you may change them, but have them explicitly stated,
so if you reshape your namespaces - only reason is that you gained new understanding of priorities.
Source code repositories should have one 'main' branch for reason. You've been warned.
Dependency structure should be discoverable. Dependency roots are more important than edge.
@andriytyurnikov
andriytyurnikov / simulate_a_b.rb
Last active April 20, 2021 14:48
A/B test simulation
def simulate_a_b
sizes = [1_000, 10_000, 100_000]
funded_distribution = [500, 500, 500, 500, 600, 700, 800, 1000, 1500, 2000]
convertion_rate = 0.03
results = {}
results = {
a: {visits: 0, funded: 0, converted: 0},
b: {visits: 0, funded: 0, converted: 0},
}
@mixin basekick(
$baseFontSize,
$typeSizeModifier,
$descenderHeightScale,
$capHeightScale,
$typeRowSpan,
$gridRowHeight,
$preventCollapse : 1
) {
$_lineHeight : $typeRowSpan * $gridRowHeight;
@andriytyurnikov
andriytyurnikov / man.txt
Created February 27, 2020 20:16
man.txt
man mana human mania manor manse woman cowman demand gunman lawman layman madman manila manner mantel mantle manual manure penman almanac baseman boatman bossman command doorman fireman footman foreman freeman hangman lineman mailman manager mandate mandrel manhood manikin mankind mansion mantrap newsman postman romance showman wingman workman alderman beadsman bondsman chairman claimant coachman commando corpsman demander freshman handyman headsman helmsman henchman horseman humanism humanist humanity leadsman maneuver manifold manpower marksman nobleman posseman rifleman romantic salesman stickman townsman trainman clergyman commander craftsman daggerman demanding emanation fisherman gentleman germanium informant letterman manganese mannequin mannerism manometer manzanita patrolman policeman spokesman sportsman stableman statesman womanhood yachtsman commandant commanding councilman counterman countryman highwayman horsewoman management manservant manuscript midshipman permanence salamander balletomane busi