<?php
namespace App\ValueObjects;
final readonly class NotificationSettings
{
module Result
def self.Success(value)
Success.new(value)
end
def self.Failure(error)
package com.example.docs.domain;
import jakarta.persistence.*;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;
use std::collections::HashMap;
use std::fmt;
#[derive(Debug, Clone)]
pub struct Document {
pub body: String,
'use strict';
const { Transform } = require('stream');
class LineSplitter extends Transform {
constructor(options = {}) {
from typing import Literal, Tuple, Type
from pydantic import BaseModel, PostgresDsn, RedisDsn
from pydantic_settings import (
BaseSettings,
PydanticBaseSettingsSource,
import { createContext, useContext, useEffect, useMemo, useState, ReactNode } from 'react';
import { authApi, User } from './authApi';
type Status = 'loading' | 'authenticated' | 'anonymous';
interface AuthValue {
<?php
namespace App\Services;
use App\Mail\VerifyEmail;
use App\Models\ContactEmail;
use serde::Serialize;
use serde_json::Value;
#[derive(Debug, Clone, Serialize)]
#[serde(tag = "kind", rename_all = "lowercase")]
pub enum ChangeKind {
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
const { pool } = require('./db');
async function recordEvent(client, { eventId, type, payload }) {
const { rows } = await client.query(
`INSERT INTO webhook_events (event_id, type, payload, status)
VALUES ($1, $2, $3, 'received')
import { useCallback, useEffect, useRef, useState } from "react";
export function useIntersectionObserver(options?: IntersectionObserverInit) {
const [isIntersecting, setIsIntersecting] = useState(false);
const nodeRef = useRef<Element | null>(null);
const optionsKey = JSON.stringify(options ?? {});