Skip to content

Instantly share code, notes, and snippets.

View nina-saule's full-sized avatar

Nina Saulė nina-saule

  • IesT
  • EU
View GitHub Profile
@nina-saule
nina-saule / bundle_fulfillment_analysis.md
Created September 8, 2026 16:40
Fulfillment Data Model: Bundle & Shipment Contents Analysis

Fulfillment Data Model: Bundle & Shipment Contents Analysis

Overview: Logical vs Physical Separation

In this fulfillment data model, there is a strict separation between logical commercial order lines and physical warehouse shipment lines:

  • order.orderItems[]: Represents the commercial/storefront lines purchased by the customer. When a customer orders a bundle/kit (e.g. TWIST RING BUNDLE), it is decomposed into its constituent physical component products, linked together by a shared orderSku.id.
  • shipments.contents[]: Represents discrete physical carton lines packed in a warehouse box. Each content line corresponds to a physical warehouse SKU (itemMaster), containing the quantity packed and attribution references (orderItems[]) pointing back to the commercial order lines fulfilled.

@nina-saule
nina-saule / pl.md
Created December 9, 2025 09:54
Autizm false friends

Wiele osób dziś podejrzewa u siebie autyzm, bo czują się społeczne niezręczne, lękowe albo „inne”. W gabinetach psychiatrycznych pacjenci często mówią o unikaniu kontaktu wzrokowego, trudności w small talku, sztywnych rutynach, intensywnych zainteresowaniach, zmęczeniu kontaktami społecznymi czy poczuciu „dziwności”. Jednak takie objawy bardzo często wynikają z lęku, cech osobowości, traumy lub innych zaburzeń — niekoniecznie z autyzmu.

Autyzm to diagnoza oparta na obserwacji zachowań, a nie na żadnym konkretnym badaniu czy „genie autyzmu”. DSM-5 wymaga, aby osoba miała wszystkie trudności z komunikacją społeczną (np. słaba naprzemienność w rozmowie, problemy z sygnałami niewerbalnymi, kłopoty z tworzeniem relacji) oraz co najmniej dwa typy zachowań powtarzalnych lub ograniczonych (rutyny, stimming, intensywne zainteresowania, wrażliwości sensoryczne). Objawy muszą zaczynać się we wczesnym dzieciństwie i wyraźnie utrudniać życie. Diagnoza jest więc oceną kliniczną, nie testem medycznym — co oznacza, że p

Based on the documentation I've reviewed, I can provide you with a comprehensive answer about Stimulus.js and its suitability for working with JSON vs HTML partials in Rails applications.

Stimulus.js Philosophy: HTML-First Approach

Stimulus.js is designed around the "HTML-first" philosophy, which aligns perfectly with the traditional Rails way. Here's what this means for your JSON vs HTML partials question:

HTML Partials (The Rails Way) - Recommended

Stimulus.js works exceptionally well with HTML partials and server-rendered content: