This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from dotenv import load_dotenv | |
| from livekit import agents | |
| from livekit.agents import AgentSession, Agent, RoomInputOptions | |
| from livekit.plugins import noise_cancellation, silero, deepgram, openai, google | |
| from livekit.plugins.turn_detector.multilingual import MultilingualModel | |
| load_dotenv(".env.local") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from dotenv import load_dotenv | |
| from livekit import agents | |
| from livekit.agents import AgentSession, Agent, RoomInputOptions | |
| from livekit.plugins import noise_cancellation, silero, openai | |
| from livekit.plugins.turn_detector.multilingual import MultilingualModel | |
| load_dotenv(".env.local") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import warnings | |
| import librosa | |
| import soundfile as sf | |
| import numpy as np | |
| from datasets import load_dataset | |
| import mlx.core as mx | |
| from nanocodec_mlx.models.audio_codec import AudioCodecModel | |
| warnings.filterwarnings("ignore", category=UserWarning) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import librosa | |
| import json | |
| import warnings | |
| import requests | |
| import io | |
| import numpy as np | |
| import mlx.core as mx | |
| import soundfile as sf | |
| from nanocodec_mlx.models.audio_codec import AudioCodecModel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useState } from "react"; | |
| import Haiex from "haiex-sdk"; | |
| const GELATO_KEY = ""; | |
| const MAGIC_KEY = ""; | |
| const INFURA_KEY = ""; | |
| let haiex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "clientNumber":1, | |
| "details":{ | |
| "officeId":1, | |
| "clientType":"Customer", | |
| "status":"Active", | |
| "isPersonal":true, | |
| "isCommercial":false, | |
| "isLifeHealth":false, | |
| "allowCrossSell":false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Form":{ | |
| "Id":"3", | |
| "InternalName":"GayaPLInsuranceForm", | |
| "Name":"Gaya PL Insurance Form" | |
| }, | |
| "$version":8, | |
| "$etag":"W/\"datetime'2024-03-12T16%3A33%3A07.8291841Z'\"", | |
| "Date":"2024-03-01", | |
| "HowDidYouFindUs":"Google", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const extractObjects = (arrayString) => { | |
| const objectPattern = /{[^{}]*}/g; | |
| const objects = arrayString.match(objectPattern); | |
| if (objects) { | |
| const parsedObjects = objects.map((objString) => { | |
| try { | |
| return JSON.parse(objString); | |
| } catch (error) { | |
| console.error("Error parsing object:", error); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Stripe = require("stripe"); | |
| const { STRIPE_SECRET_KEY } = process.env; | |
| const stripe = Stripe(STRIPE_SECRET_KEY); | |
| const [planA, planB, planC] = [ | |
| "price_1Mj4hPI4ImfNjweeB0fXE9xA", | |
| "price_1Mj4hPI4ImfNjweehhxUwzUh", | |
| "price_1Mj4hQI4ImfNjweeP0q6iEuK", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const { createPayment, getCaptureById } = require('./moncash-api'); | |
| const app = express(); | |
| // API route to create payment | |
| app.get('/payment/create', createPayment); // Parameters: amount, orderId | |
| // API route to get capture by ID | |
| app.get('/capture/getById', getCaptureById); // Parameters: orderId |
NewerOlder