Instantly share code, notes, and snippets.
🇵🇱
Blogging in Polish on NaKodach.PL
👨💻 Software Craftsman @ AxonIQ | Domain-Driven Design | Event Sourcing | EventStorming | Event Modeling | Kotlin | Java | C# .NET | Ruby | Node.js
- Ready to work with DDD / CQRS / Event Sourcing / Kotlin / Java / Ruby / Node.js / .NET
- Wrocław, Poland
- DDDHeroes.com
- in/MateuszNaKodach
- nakodach_pl
- https://dddheroes.com
- https://nakodach.pl
MateuszNaKodach /BuildDwelling.Slice.kt
Last activeJune 30, 2025 09:28
Vertical Slice implemented in Axon Framework 5 (pure functional domain) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
packagecom.dddheroes.heroesofddd.creaturerecruitment.write | |
importcom.dddheroes.heroesofddd.EventTags | |
importcom.dddheroes.heroesofddd.creaturerecruitment.events.DwellingBuilt | |
importcom.dddheroes.heroesofddd.creaturerecruitment.events.DwellingEvent | |
importcom.dddheroes.heroesofddd.shared.domain.HeroesEvent | |
importcom.dddheroes.heroesofddd.shared.restapi.Headers | |
importorg.axonframework.commandhandling.annotation.CommandHandler | |
importorg.axonframework.commandhandling.gateway.CommandGateway | |
importorg.axonframework.eventhandling.gateway.EventAppender |
MateuszNaKodach /CodersCampReactSolution.tsx
CreatedApril 8, 2021 19:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
importReact,{useCallback,useEffect,useState}from"react"; | |
import{StockApi,StockInfo,StockSymbol,SubscriptionId}from"../api"; | |
interfaceLiveStockViewProps{ | |
readonlysymbol:StockSymbol; | |
} | |
interfaceLiveStockViewState{ | |
prevStockInfo?:StockInfo; | |
stockInfo?:StockInfo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
importReact,{useEffect,useState}from"react"; | |
import{AppProps}from"./LegacyApp"; | |
import{StockApi,StockInfo,StockSymbol,SubscriptionId}from"../api"; | |
functionApp(props:AppProps){ | |
const[state,setState]=useState({selectedSymbol:props.symbols[0]}) | |
consthandleOnClick=(e:React.MouseEvent<HTMLDivElement>)=>{ | |
e.preventDefault(); | |
constsymbol=(e.targetasHTMLAnchorElement).getAttribute( |
MateuszNaKodach /RealmListParcelConverter.java
CreatedNovember 15, 2016 12:32 — forked frompatloew/RealmListParcelConverter.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
publicclassRealmListParcelConverterimplementsTypeRangeParcelConverter<RealmList<?extendsRealmObject>,RealmList<?extendsRealmObject>> { | |
privatestaticfinalintNULL = -1; | |
@Override | |
publicvoidtoParcel(RealmList<?extendsRealmObject>input,Parcelparcel) { | |
if (input ==null) { | |
parcel.writeInt(NULL); | |
}else { | |
parcel.writeInt(input.size()); | |
for (RealmObjectitem :input) { |
MateuszNaKodach /KompendiumProgramistyJavaCwiczeniaWydanieIX_.idea_.name
CreatedApril 28, 2016 17:34
My home JAVA exercises from Programmist Compendium by Herbert Schildt BOOK. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
KompendiumProgramistyJavaCwiczeniaWydanieIX |