Skip to content

Instantly share code, notes, and snippets.

View Samox's full-sized avatar

Sammy Teillet Samox

View GitHub Profile
@Samox
Samox / saga.ts
Created October 13, 2022 15:01
Nestjs Saga to merge events from same orga and wait for 2 events before creating a command
import { ICommand, IEvent, ofType } from '@nestjs/cqrs';
import { combineLatest, first, groupBy, map, mergeMap, Observable } from 'rxjs';
import { TestScheduler } from 'rxjs/testing';
type CompanyId = string & { readonly brand: 'companyId' };
type OrganisationId = string & { readonly brand: 'organisationId' };
type AddressId = string & { readonly brand: 'addressId' };
export class OrganisationCreated implements IEvent {
constructor(
@Samox
Samox / resume.json
Last active February 15, 2024 13:57
Sammy Teillet resume in https://jsonresume.org/ format
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Sammy Teillet",
"label": "Head of Engineering",
"image": "https://avatars.githubusercontent.com/u/6906559?s=400&u=02a70fa7806710f4a5a137dae0e9625928db24ab&v=4",
"email": "sammy.teillet@gmail.com",
"phone": "+33 683919393",
"summary": "I'm an engineer eager to start his new adventure, preferably as a cofounder. \nI bring 6 years of experience in engineering, product and operations. \nI've worked with fintech startups but remain open to other industries — I'm drawn to complex engineering challenges. \nMy dream would be to start an open-source business 😇.",
"location": {