Skip to content

Instantly share code, notes, and snippets.

View ehzawad's full-sized avatar
🎃
Wasteland Baby!

ehzawad ehzawad

🎃
Wasteland Baby!
View GitHub Profile
#!/usr/bin/env python3
import asyncio
import aiohttp
import json
import time
import argparse
import os
import sys
import logging
from typing import Dict, Any, Optional, List, Text
#!/usr/bin/env python3
"""
Bengali Emotion Dataset Creator
This script creates a Hugging Face dataset from Bengali WAV files and their transcriptions.
It processes audio files, maps them with transcripts from a CSV file, and uploads
the dataset to the Hugging Face Hub.
Requirements:
- pandas
-- [email protected]; email me to say hi or if there are any questions
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Install package manager
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git', 'clone',
'--filter=blob:none',
#!/usr/bin/env python3
import socket
import requests
import concurrent.futures
import time
import sys
from urllib.parse import urlparse
from dataclasses import dataclass
from typing import List, Tuple
import subprocess
# SPDX-License-Identifier: Apache-2.0
import json
import random
import string
import torch
from vllm import LLM
from vllm.sampling_params import SamplingParams
import requests
import json
import random
def generate_otp() -> str:
"""Generate a random 6-digit OTP"""
return ''.join([str(random.randint(0, 9)) for _ in range(6)])
def test_otp_server():
# Generate a random 6-digit OTP
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_FUNCS 10 // Maximum number of functions supported
#define NAME_LEN 50 // Maximum length of function names
#define STR_LEN 100 // Maximum length of strings to print
// Structure to store function definitions
struct Function {
@ehzawad
ehzawad / merge_all_python_files.sh
Created February 24, 2025 16:45
Merge All Python Files
find . -name "*.py" | while IFS= read -r file; do
echo "===== $file =====" >> merged.txt
cat "$file" >> merged.txt
echo -e "\n" >> merged.txt
done
#!/usr/bin/env python3
import sys
import os
import subprocess
from datetime import datetime
import re
import shutil
import logging
# Set up logging
nlu.yml:
- intent: new_card_activation
examples: |
- কার্ড অ্যাক্টিভেট করতে চাই
- নতুন কার্ড অ্যাক্টিভেট করব
- আমার কার্ডটি সক্রিয় করতে চাই
- কার্ড এক্টিভেশন করতে চাই
- নতুন কার্ড সক্রিয় করতে হবে
- কার্ড অ্যাক্টিভেশন প্রসেস শুরু করুন