Skip to content

Instantly share code, notes, and snippets.

@acominotto
acominotto / async-dialog.tsx
Last active April 22, 2026 14:58
Simple yet powerful way to create dialogs and to open them from anywhere
"use client";
import { DialogRoot } from "@/components/ui/dialog";
import {
createContext,
useCallback,
useContext,
useEffect,
useLayoutEffect,
useState,
@acominotto
acominotto / iap.md
Created May 22, 2024 08:01
Set up with

How to validate payments for ios / android in the backend with react native iap and expo.

Set up react-native-iap

in your project :

npm install react-native-iap

then add react-native-iap to your plugins in app.config.(js|ts) or app.json

@acominotto
acominotto / gen- pkcs8 - spki.txt
Last active December 11, 2023 07:06
gen token
openssl genpkey -out rsakey.pem -algorithm RSA -pkeyopt rsa_keygen_bits:2048
openssl pkey -in rsakey.pem -pubout -out rsapubkey.pem
cat rsakey.pem
cat rsapubkey.pem
## then encode to base64 to store in .env

What is Scala?


Créé par Martin en 2003 -- Son nom vient de l'anglais Scalable language Scala intègre les paradigmes de programmation orientée objet et de programmation fonctionnelle, avec un typage statique


  1. Fonctionnel basique

a) Immutability