๐
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
#include <iostream> | |
template <auto... nums> | |
struct array | |
{ | |
}; | |
// FDs | |
template <auto... nums> | |
void print(array<nums...> array); |
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 { verifyWebhook } from "@clerk/express/webhooks"; | |
clerkWebhookRoutes.post('/', async (request, response) => { | |
const webhookVerification = await verifyWebhook(request, | |
{ | |
signingSecret: env.CLERK_WEBHOOK_SIGNING_SECRET, | |
} | |
); |
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
// requires >= c++17 | |
#include <functional> | |
#include <algorithm> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <ctime> | |
//--[PCB]---------------------------------- |
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
// requires >= c++17 | |
#include <functional> | |
#include <algorithm> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
//---[Node]-------------------------------- |
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
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) |
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
<?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=[]; |