generor
Générateur Public

Parcourir les Code publics

Filtrer par modèle

Tous les modèles 16 créations
GPT 5 Nano 4 créations
Gemini 2.5 Flash 9 créations
Claude 4.5 Haiku 2 créations
Gemini 3 Flash Preview 1 création

Filtrer par langue

Toutes les langues 16 créations
English (United States) 15 créations
Portuguese (Brazil) 1 création

Trier par

Plus récentes d'abord Créations les plus récentes
Plus anciennes d'abord Début de vos archives
Les mieux notées Non notées en dernier

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
Invite : Write a code in python to create dictionary
Code
Invite : 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()
Gemini 2.5 Flash Portuguese (Brazil) 1 crédit

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
Invite : 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
Invite : ساخت اپ تولید و جنراتور کدهای مخفی اجرایی بکند مناسب با هر صفحه فرانت و متصل کردن به ان وقابلیت اجرا در مرورگرها

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
Invite : 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
Invite : 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
Invite : اسکریپت اس ام اس بمبر رایگان

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