Skip to content

Instantly share code, notes, and snippets.

View rodriguesabner's full-sized avatar

Abner Rodrigues rodriguesabner

View GitHub Profile
@rodriguesabner
rodriguesabner / game.ts
Created December 13, 2022 13:10
Amigo Secreto
import participants from "./participants.json"
interface ParticipantProps {
name: string;
email: string;
not?: string[];
}
class AmigoSecreto {
shuffle(array: ParticipantProps[]): ParticipantProps[] {
@rodriguesabner
rodriguesabner / game.ts
Last active December 13, 2022 13:37
Amigo Secreto - Exemplo Final
import participants from "./participants.json"
import nodemailer from "nodemailer"
interface ParticipantProps {
name: string;
email: string;
not?: string[];
}
interface ParticipantsSortedProps extends ParticipantProps {