Install vx with a single command:
curl -fsSL https://gist.githubusercontent.com/nuhmanpk/a2fee1fa401b420f32def115064ded39/raw/install.sh | bashThe installer will:
A simple Python script to parse SIR (Special Intensive Revision) electoral roll PDFs published by the Election Commission of India, extract voter details from scanned Malayalam documents, and convert them into a clean CSV with Malayalam to English translation.
Special Intensive Revision (SIR) is a comprehensive verification process of electoral rolls conducted by the Election Commission of India to update, correct, add, or remove voter entries.
| import streamlit as st | |
| import time | |
| from langchain_community.document_loaders import SeleniumURLLoader | |
| from langchain_text_splitters import RecursiveCharacterTextSplitter | |
| from langchain_core.vectorstores import InMemoryVectorStore | |
| from langchain_ollama import OllamaEmbeddings | |
| from langchain_core.prompts import ChatPromptTemplate | |
| from langchain_ollama.llms import OllamaLLM |
| import { GoogleGenAI } from "@google/genai"; | |
| const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY }); | |
| let response = await ai.models.generateContent({ | |
| model: "gemini-2.0-flash", | |
| contents: [ | |
| "Given the sentence 'hello world, this is an example sentence', find the longest word, count the vowels in it, and return the product of the length of the longest word and the number of vowels." | |
| ], | |
| config: { |
| import 'dotenv/config'; | |
| import { GoogleGenAI, Type } from '@google/genai'; | |
| const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY }); | |
| const getCoordinatesFunction = { | |
| name: 'get_coordinates', | |
| description: 'Find latitude and longitude of a city.', | |
| parameters: { | |
| type: Type.OBJECT, |
| // 1️⃣ Import the OpenAI SDK | |
| import { OpenAI } from "openai"; | |
| // 2️⃣ Initialize the OpenAI client | |
| const openai = new OpenAI(); | |
| // 3️⃣ Define our two tools: | |
| // a. get_coordinates: To find the latitude and longitude for a given city. | |
| // b. get_weather: To get the current temperature using the coordinates. | |
| const tools = [ |
| from pyrogram import Client | |
| # get these values from api.telegram.org | |
| api_id = "API_ID" | |
| api_hash = "API_HASH" | |
| async def main(): | |
| async with Client(":memory:", api_id=int(api_id), api_hash=api_hash) as app: | |
| # Generate the session string |
| import pyrogram | |
| import pywhatkit | |
| # Replace with your Pyrogram API credentials | |
| API_ID = 'YOUR_API_ID' | |
| API_HASH = 'YOUR_API_HASH' | |
| BOT_TOKEN = 'YOUR_BOT_TOKEN' | |
| # Initialize the Pyrogram client | |
| app = pyrogram.Client('my_bot', api_id=API_ID, api_hash=API_HASH, bot_token=BOT_TOKEN) |
| <lib-ngx-image-zoom | |
| [thumbImage]='imageUrl' [fullImage]=imageUrl maxZoomRatio="10" magnification="1" | |
| enableScrollZoom="true" altText="img-not-found"> | |
| </lib-ngx-image-zoom> |
| from userbase import present_in_userbase, add_to_userbase, get_users # userbase.py is Attached below | |
| import time | |
| @bughunter0.on_message(filters.private & filters.command('broadcast') & filters.user(OWNER) & filters.reply) | |
| async def broadcast(client: bughunter0, message: Message): | |
| broadcast_msg = message.reply_to_message | |
| txt = await message.reply(text = 'Staring....') | |
| user_ids = await get_users() | |
| success = 0 | |
| deleted = 0 |