Skip to content

Instantly share code, notes, and snippets.

@plourenco
plourenco / organization.service.spec.ts
Last active January 13, 2023 18:23
Test creation of credix pass
it("test", async () => {
const org = new Organization();
org.users = Promise.resolve([]);
org.compliances = [];
const { publicKey } = new Keypair();
const user = new UserEntity();
user.id = "1";
user.organization = org;
user.publicKey = publicKey.toString();
@plourenco
plourenco / validators.ts
Created December 1, 2022 21:05
Validator comparison
/* eslint-disable no-console */
import Ajv, { JTDDataType } from "ajv/dist/jtd";
import Joi from "joi";
import { z } from "zod";
import yup, { ValidationError } from "yup";
export type AuthResponse = {
investorId: string;
expiration: number;
};
@plourenco
plourenco / bash
Created March 16, 2021 13:40
Celagem.sh
#!/bin/bash
echo 'WE WILL CELAR YOU'
sleep 1
echo 'clear'
sleep 1
echo '-bash: clear: command not found'
sleep 2
@plourenco
plourenco / app.js
Created August 1, 2020 23:56
Using CodePipeline to automate serverless applications deployment
const express = require('express')
const app = express()
const port = 3000
const awsServerlessExpress = require('aws-serverless-express')
const server = awsServerlessExpress.createServer(app)
app.get('/', (request, response) => {
response.send('Hello Medium universe!');
});