Skip to content

Instantly share code, notes, and snippets.

View marcospassos's full-sized avatar
🏠
Working from home

Marcos Passos marcospassos

🏠
Working from home
View GitHub Profile

Croct
Feature Specification
Technical specification for the sign-in and sign-up features.

@marcospassos
marcospassos / server-side-evaluation-node.ts
Created November 20, 2020 19:40
Croct server-side evaluation for Node JS
import * as https from 'https';
import * as querystring from 'querystring';
import {createGunzip} from 'zlib';
const APP_ID = process.env.CROCT_APP_ID as string;
const API_KEY = process.env.CROCT_API_KEY as string;
if (APP_ID === undefined) {
throw new Error('Croct app ID required.');
}
@marcospassos
marcospassos / tailwindui-toast-animation.html
Last active July 8, 2020 02:52
Tailwind Toast annimation
<!--
Smoothie sliding up toast animation
Entering: "ease-out duration-300 transition transform"
From: "opacity-0 translate-y-2 sm:translate-y-0 sm:translate-x-2"
To: "opacity-100 translate-y-0 sm:translate-x-0"
Leaving: "ease-in-out duration-300 transition-all transform"
onExit: node => node.style.maxHeight = node.getBoundingClientRect().height
From: "opacity-100 opacity-100 mb-5 translate-y-0 sm:translate-x-0"
onExiting={node => node.style.maxHeight = ''}
<?php
namespace Colibri\Bundle\ProductBundle\Model\Option;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Product option model.
*