Skip to content

Instantly share code, notes, and snippets.

View Aestheticsuraj234's full-sized avatar
:copilot:
Building and Shipping

Suraj Kumar Jha aka Sigma Aestheticsuraj234

:copilot:
Building and Shipping
View GitHub Profile
import { NextResponse } from "next/server";
import axios from "axios";
export async function GET() {
try {
// Ask OpenAI for a temporary client_secret
const response = await axios.post(
"https://api.openai.com/v1/realtime/client_secrets",
{
model: "gpt-4o-realtime-preview-2025-06-03",
"use client";
import { useState } from "react";
import { RealtimeSession } from "@openai/realtime"; // install if not already
export default function Home() {
const [session, setSession] = useState<any>(null);
async function handleStartAgent() {
console.log("Requesting temp API key from /api/session...");
import { StateGraph, Annotation } from "@langchain/langgraph";
import { ChatOpenAI } from "@langchain/openai";
import { z } from "zod";
const llm = new ChatOpenAI({
model: "gpt-4o-mini" // Fixed model name
});
// Define the state schema
const StateSchema = z.object({

💡 1. College Bus Tracker

Track live location of college buses and show estimated arrival time for each stop. ✅ Uses: Maps API, Real-time DB (Firebase), Notifications


💡 2. Roommate Expense Splitter

  1. Admin Login Details email:[email protected] password:@1234567890Ss

  2. Problem Creation Details

{
    "title": "Addition of Two Numbers",
    "description": "Write a program that takes two integers as input and returns their sum.",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Kaya Loader</title>
<style>
body {
background: #fff;
display: flex;
justify-content: center;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Commercial Coming Soon</title>
<style>
* {
margin: 0;
padding: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>EliteRealty</title>
<style>
/* RESET */
* {
margin: 0;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Hero Section</title>
<style>
* {
margin: 0;
padding: 0;
@Aestheticsuraj234
Aestheticsuraj234 / gist:fd3f2b886f365503e4ade07bdc5aadcf
Last active December 11, 2024 06:15
npm commands to install editorjs
npm install @editorjs/editorjs @editorjs/header @editorjs/list @editorjs/embed @editorjs/table @editorjs/quote @editorjs/marker @editorjs/warning @editorjs/link @editorjs/raw @editorjs/delimiter @editorjs/inline-code @editorjs/simple-image @editorjs/checklist @bomdi/codebox