Skip to content

Instantly share code, notes, and snippets.

View thearyanag's full-sized avatar
afk

aryan thearyanag

afk
View GitHub Profile

Codex Reviewer

You are a code reviewer agent powered by OpenAI Codex. Your job is to review code changes and provide actionable feedback.

Workflow

  1. Receive a review request (diff, file paths, or a description of changes).
  2. Use the mcp__codex__codex tool to start a Codex review session with the relevant code context.
  3. If follow-up analysis is needed, use mcp__codex__codex-reply with the thread ID from step 2.
  4. Summarize Codex's findings into a clear, structured review for the user.
@thearyanag
thearyanag / index.ts
Created May 4, 2025 09:44
Solana Agent Kit with Cloudflare Workers
import { McpAgent } from "agents/mcp";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { SolanaAgentKit, KeypairWallet } from "solana-agent-kit";
import { Keypair } from "@solana/web3.js";
import { zodToMCPShape } from "@solana-agent-kit/adapter-mcp";
import TokenPlugin from "@solana-agent-kit/plugin-token";
import bs58 from "bs58";
interface Env {
SOLANA_PRIVATE_KEY: string;
@thearyanag
thearyanag / # SONIC AGENT KIT
Last active February 27, 2025 19:40
Sonic Agent Kit
an example to show how to use sonic agent kit to connect ai with any sonic protocol
@thearyanag
thearyanag / index.js
Created October 23, 2024 16:47
Mint Fomo Key using Script
const {
Connection,
Transaction,
sendAndConfirmTransaction,
Keypair,
ComputeBudgetProgram,
} = require("@solana/web3.js");
const bs58 = require("bs58");
const axios = require("axios");
@thearyanag
thearyanag / transferNFT.js
Created May 17, 2023 06:50
A web3.js function to transfer NFT from one wallet to another
const {
Connection,
PublicKey,
Keypair,
Transaction,
sendAndConfirmTransaction,
} = require("@solana/web3.js");
const splToken = require("@solana/spl-token");
const base58 = require("bs58");
@thearyanag
thearyanag / arach_ques3.java
Created September 9, 2022 14:08
Find the average of largest and smallest numbers in an unsorted integer array?
// Find the average of largest and smallest numbers in an unsorted integer array?
// Eg. [1, 4, 3, 2] => average = (1+4)/2 = 2.5[1, 4, 3, 4] => average = (1+4+4)/3 = 3
import java.util.*;
double avg(int arr[])
{
Arrays.sort(arr);
return (arr[0]+arr[arr.length-1])/2;
}
@thearyanag
thearyanag / arach_ques2.java
Created September 9, 2022 14:05
Given n email addresses of different domains, please send an email to the first address(in alphabetical order) of each domain.
// Given n email addresses of different domains, please send an email to the first address(in alphabetical order) of each domain.
// Please assume a function sendmail() to send the emails.A sample email array is following
// {ghi@hotmail.com, def@yahoo.com, ghi@gmail.com, abc@channelier.com, abc@hotmail.com, def@hotmail.com, abc@gmail.com,
// abc@yahoo.com, def@channelier.com,jkl@hotmail.com, ghi@yahoo.com, def@gmail.com }
import java.util.*;
void sendMail(String arr[])
{
Arrays.sort(arr);
List<String> emailList = new ArrayList<>();
@thearyanag
thearyanag / arach_ques1.java
Created September 9, 2022 13:06
Find the counts of elements of an unsorted integer array which are equal to the average of all elements of that array.
// Find the counts of elements of an unsorted integer array which are equal to the average of all elements of that array.
int count(int arr[])
{
int count=0,avg=0;
int l = arr.length;
for(int i=0 ; i<l ; i++)
{
avg = avg + arr[i];
}