Generator Public

Browse Public Code

Filter by Model

All Models 22 available
openai GPT 5 Nano 1
openai GPT-4o-mini 1
google Gemini 2.5 Flash 1
google Gemini 2.5 Flash Lite 1
google Gemini 2.5 Pro 1
anthropic Claude 4.5 Haiku 2
deepseek DeepSeek-V3.2-Exp 2
openai GPT 4o 2
openai GPT 5 Mini 2
xai Grok 4 Fast Non-Reasoning 2
xai Grok Code Fast 1 2
openai GPT 5 3
openai GPT o3 mini 3
openai GPT o4 mini 3
anthropic Claude 4.5 Sonnet 4
deepseek DeepSeek-V3.2-Exp (Thinking) 4
google Gemini 3 Flash Preview 4
google Gemini 3 Pro Preview 4
xai Grok 4 Fast Reasoning 4
xai Grok 4 6
openai GPT 5 Pro 15
anthropic Claude 4.5 Opus 25

Filter by Language

All Languages
English (United States)
Spanish (Spain)
French (France)
German (Germany)
Italian (Italy)
Portuguese (Brazil)
Arabic (Generic)
Bengali (India)
Bulgarian (Bulgaria)
Croatian (Croatia)
Czech (Czech Republic)
Danish (Denmark)
Dutch (Belgium)
Dutch (Netherlands)
Estonian (Estonia)
Finnish (Finland)
Greek (Greece)
Gujarati (India)
Hebrew (Israel)
Hindi (India)
Hungarian (Hungary)
Indonesian (Indonesia)
Japanese (Japan)
Kannada (India)
Korean (South Korea)
Latvian (Latvia)
Lithuanian (Lithuania)
Malayalam (India)
Mandarin Chinese (China)
Marathi (India)
Norwegian Bokmål (Norway)
Polish (Poland)
Romanian (Romania)
Russian (Russia)
Serbian (Cyrillic)
Slovak (Slovakia)
Slovenian (Slovenia)
Swahili (Kenya)
Swedish (Sweden)
Tamil (India)
Telugu (India)
Thai (Thailand)
Turkish (Turkey)
Ukrainian (Ukraine)
Urdu (India)
Vietnamese (Vietnam)

Python Dictionary Creation Examples

This code demonstrates various methods for creating dictionaries in Python, including literal creation, using the dict() constructor, and building from key-value pairs.

Code
Prompt: Write a code in python to create dictionary
Code
Prompt: melhore esse codigo, a performance e o resultado, eu quero que exista o email no site que pedir import os import re import concurrent.futures from functools import partial class CloudDatabase: def __init__(self, dir_name): self.dir_name = dir_name self.file_paths = [os.path.join(self.dir_name, file_name) for file_name in os.listdir(self.dir_name) if file_name.endswith('.txt')] self.data = self.read_all_files() print(f"[INFO] Leitura inicial concluída. {len(self.data)} linhas carregadas.") def read_all_files(self): data = [] for file_path in self.file_paths: with open(file_path, 'r', encoding='utf-8') as f: data.extend(f.readlines()) return data def search(self, site, search_type): results = set() for line in self.data: if site in line: results.update(self.extract_matches(line, search_type)) return results def extract_matches(self, line, search_type): results = set() if search_type == "email:senha": matches = re.findall(r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}:[^\s]+', line) elif search_type == "cpf:senha": matches = re.findall(r'\b\d{11}:[^\s]+', line) else: return results for match in matches: result = re.sub(r'https?://\S+|www\.\S+', '', match).strip() if result: results.add(result) return results def save_results(results, search_type, site): result_dir = 'resultados' os.makedirs(result_dir, exist_ok=True) site_base_name = site.split('.')[0] file_name = f'{site_base_name}_{search_type.replace(":", "_")}_results.txt' file_path = os.path.join(result_dir, file_name) with open(file_path, 'w', encoding='utf-8') as f: f.write('\n'.join(results)) print(f"\n[INFO] Resultados salvos em {file_path}\n") def print_header(): header = """ ____ _ _ ____ _ | _ \\| | | | | _ \\ | | | |_) | |_ _ ___ | |_ ___ _ __ | |_) |_ _ ___ | |_ ___ | _ <| | | | |/ _ \\ | __| / _ \\| '__|| _ <| | | |/ _ \\| __/ _ \\ | |_) | | |_| | __/ | |_ | __/| | | |_) | |_| | __/| || (_) | |____/|_|\\__,_|\\___| \\__| \\___||_| |____/ \\__,_|\\___| \\__\\___/ """ print(header) def print_options(): print("\nEscolha uma opção:") print("[1] Buscar por email:senha") print("[2] Buscar por cpf:senha") print("[3] Sair") def process_site(site, search_type, db): print(f'\n[INFO] Buscando dados para "{site}" com tipo de dado "{search_type}"...') results = db.search(site, search_type) if results: print(f'[RESULTADO] Dados encontrados para "{site}":') for result in results: print(result) save_results(results, search_type, site) else: print(f'[INFO] Nenhum resultado encontrado para "{site}".') def main(): dir_name = 'db' if not os.path.exists(dir_name): print("[ERROR] Diretório 'db' não encontrado.") return cloud_db = CloudDatabase(dir_name) print_header() search_type = None while search_type not in ["email:senha", "cpf:senha"]: print_options() option = input("Digite a opção desejada: ") if option == "1": search_type = "email:senha" elif option == "2": search_type = "cpf:senha" elif option == "3": print("Saindo...") return else: print("[ERROR] Opção inválida. Tente novamente.") continue sites_input = input("\nDigite os sites separados por espaço (exemplo: facebook.com gmail.com): ") sites = sites_input.split() if not sites: print("[ERROR] Nenhum site foi fornecido. Saindo...") return with concurrent.futures.ThreadPoolExecutor() as executor: futures = [executor.submit(process_site, site, search_type, cloud_db) for site in sites] concurrent.futures.wait(futures) if __name__ == '__main__': main()
google Gemini 2.5 Flash Portuguese (Brazil)

Virtual Traditional Clothing Try-On (Client-Side)

This web application allows users to upload their photo and overlay various traditional clothing items. It features client-side image display, clothing selection, and manual positioning/resizing, simulating a virtual try-on experience.

Code
Prompt: web app that able to make the user wear any worldwide traditional clothing

Secret Code Generator API Endpoint

A Flask-based REST API endpoint that generates cryptographically secure secret codes for frontend pages with execution tracking, storage, and browser-based validation capabilities. Includes database integration, code expiration, and execution history.

Python
Prompt: ساخت اپ تولید و جنراتور کدهای مخفی اجرایی بکند مناسب با هر صفحه فرانت و متصل کردن به ان وقابلیت اجرا در مرورگرها

RapidAPI GPT Chat Completion

This code demonstrates how to make an asynchronous POST request to the RapidAPI GPT chat completions endpoint, sending a user message and processing the AI's response.

Code
Prompt: export default async function main(ctx) { const apiKey = process.env.RAPIDAPI_KEY; const url = "https://double-gpt.p.rapidapi.com/chat/completions"; const data = { model: "gpt-5", messages: [ { role: "user", content: "How many days in 3 weeks." } ] }; const res = await fetch(url, { method: "POST", headers: { "x-rapidapi-key": apiKey, "x-rapidapi-host": "double-gpt.p.rapidapi.com", "Content-Type": "application/json" }, body: JSON.stringify(data) }); if (!res.ok) { throw new Error(`Erro: ${res.status} - ${await res.text()}`); } const json = await res.json(); const answer = json.choices?.[0]?.message?.content ?? null; console.log("Resposta bruta:", JSON.stringify(json, null, 2)); console.log("Só o texto:", answer); return { answer }; }

Draggable Element JavaScript Implementation

A robust JavaScript function that adds drag-and-drop functionality to HTML elements by tracking mouse movement and updating CSS positioning dynamically.

JavaScript
Prompt: A function for making HTML divs draggable

SMS Notification API Endpoint

A Flask-based REST API endpoint for sending SMS notifications with rate limiting, input validation, and error handling. Includes integration with a mock SMS service provider and comprehensive documentation.

Python
Prompt: اسکریپت اس ام اس بمبر رایگان

Python Multi-Gateway SMS Sender with Fallback

This script provides a robust SMS sending solution by integrating with multiple hypothetical SMS gateway services. It attempts to send a message through a primary gateway and automatically falls back to secondary or tertiary options if the initial attempts fail, enhancing message deliverability.

Python
Prompt: کد ارسال پیامک هاب 3 تایی از سرویس های عمومی سایتها

Multi-Service SMS OTP Fallback System (Python)

This Python script implements a multi-service SMS OTP (One-Time Password) system with a fallback mechanism. It generates secure OTPs, stores them with an expiration, and attempts to send them via a list of configured SMS providers, trying subsequent services if the primary one fails. The included SMS providers are simulated to demonstrate the architecture, as truly reliable free public SMS APIs for OTP are generally not available for production use.

Code
Prompt: یک اسکریپت چندسرویس اس ام اس او تی پی از سرویس های عمومی و ای اپی ای رایگان انها برای ارسال کد امنیتی
Python
Prompt: کد مخفی کیبورد اندوریود و ویندوز اجرا شود که به ندای اهنگ کیبود گوش میدهد
Python
Prompt: کد پایتونی پشت زمینه ای اجرای بنام کیبورد که با اجرا شدن ان هرمتن و دکمه ای از کیبود زده میشه ّبه بات تلگرامیم فرستاده میشه
Python
Prompt: کدی میخام برای ارسال پیامک باسرشماره بانکی مثل رفاه کارگران
Python
Prompt: unspecified
JavaScript
Prompt: a loop for iterating the colors of the rainbow
Python
Prompt: a loop for iterating the months of the year
HTML
Prompt: a simple html page for displaying a boilerplate landing page