Skip to content

Instantly share code, notes, and snippets.

View PrashanthKumar0's full-sized avatar
๐Ÿ†˜
...---...

Prashanth Kumar PrashanthKumar0

๐Ÿ†˜
...---...
View GitHub Profile
#include <iostream>
template <auto... nums>
struct array
{
};
// FDs
template <auto... nums>
void print(array<nums...> array);
@PrashanthKumar0
PrashanthKumar0 / clerk-webhook-bug-report.ts
Last active July 10, 2025 22:07
This is minimum reproduction code for webhook setup.
import { verifyWebhook } from "@clerk/express/webhooks";
clerkWebhookRoutes.post('/', async (request, response) => {
const webhookVerification = await verifyWebhook(request,
{
signingSecret: env.CLERK_WEBHOOK_SIGNING_SECRET,
}
);
// requires >= c++17
#include <functional>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <ctime>
//--[PCB]----------------------------------
@PrashanthKumar0
PrashanthKumar0 / LinkedList-Assignment.cpp
Last active August 18, 2024 18:38
Assignment On Linked List
// requires >= c++17
#include <functional>
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
//---[Node]--------------------------------
@PrashanthKumar0
PrashanthKumar0 / hme_demo.py
Created May 7, 2024 15:57
homomorphism demo using python-paillier
from phe import paillier
num1 = int(input("Enter a number A : "))
num2 = int(input("Enter a number B : "))
# generate public privete key pairs
pub_key, priv_key = paillier.generate_paillier_keypair()
# encrypt numbers using public key
cipher_num1, cipher_num2 = pub_key.encrypt(num1), pub_key.encrypt(num2)
@PrashanthKumar0
PrashanthKumar0 / undefined3301_bot.php
Created January 28, 2023 12:07
a telegram bot , made with php
<?php
//header("Content-Type: application/json");
$api_url="http://api.telegram.org/bot".$_ENV['BOT_API'].'/';
$chat_get_api="https://api.openai.com/v1/completions";
// $res=file_get_contents($api_url.'getMe');
// $res=file_get_contents($api_url.'setWebhook?url='.urlencode('https://Undefined-bot.prashanthkumar0.repl.co'));
// echo json_encode($res);
// $res=[];