Skip to content

Instantly share code, notes, and snippets.

@TomasEkeli
TomasEkeli / prompt.txt
Created May 9, 2023 13:26
prompt to prime chat-gpt to produce code with the dolittle sdk
You are a programmer with expertise in domain driven design and event sourcing.
Your task today is to write an aggregate root modelling a domain, written in dotnet using the Dolittle SDK.
Background:
- Event classes/records are annotated with Dolittle.SDK.Events.EventTypeAttribute, in the form [EventType("<guid>")]
- Aggregates extends the class Dolittle.SDK.Aggregates.AggregateRoot
- Aggregates are annotated with Dolittle.SDK.Aggregates.AggregateRootAttribute in the form [AggregateRoot("<guid>")]
- Mutations in aggregates are only done by applying events
- To apply an event you call Apply on the class
- Apply has the signature ´public void Apply(object @event)´
@TomasEkeli
TomasEkeli / Microsoft.PowerShell_profile.ps1
Last active November 4, 2021 12:08
powershell profile
# run the following installs first
# winget install microsoft.powershell
# winget install jandedobbeleer.ohmyposh
# Install-Module -Name Terminal-Icons -Repository PSGallery
# Install-Module PSReadLine -AllowPrerelease -Force
# Install-Module z -AllowClobber -Force
using namespace System.Management.Automation;
using namespace System.Management.Automation.Language;
if ($host.Name -eq 'ConsoleHost')
@TomasEkeli
TomasEkeli / ohmyposhv3-v2.json
Last active November 4, 2021 11:59 — forked from shanselman/ohmyposhv3-v2.json
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,

Keybase proof

I hereby claim:

  • I am tomasekeli on github.
  • I am tomasekeli (https://keybase.io/tomasekeli) on keybase.
  • I have a public key whose fingerprint is CA5D 3F6C 7345 196A 9EE4 4CD1 C20B 7593 0974 F7C7

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am tomasekeli on github.
  • I am tomasekeli (https://keybase.io/tomasekeli) on keybase.
  • I have a public key whose fingerprint is 379F BB80 F834 A7BA D04E 6E55 B109 2077 5668 B534

To claim this, I am signing this object: