c-get-digit-at-position-function-with-while-loop
Write a C function named get_digit_at_position that extracts a digit from a number at a specific position using a while loop.
Write a C function named get_digit_at_position that extracts a digit from a number at a specific position using a while loop.
Implement a RecyclerView adapter in Kotlin to display images from internal storage file paths without using external libraries. Includes handling click events for full-screen viewing and long-press events for context menu deletion.
Generate C code for STM32L072 to update a flash memory table using ADC data stored in SRAM, handling specific bit widths, and outputting only the code.
Create a pure JavaScript tool (no Node.js) to validate Tor bridge IPs from a textarea. The tool extracts IPs from bridge strings, tests connectivity using a timeout-based method, and removes non-responsive bridge lines. It must use string concatenation instead of template literals.
编写基于Python Tkinter的秒表程序,要求使用Label控件显示时间,确保窗口不卡顿(非阻塞),并支持条件触发停止。
用于在 Visual Studio 属性表或 MSBuild 中编写字符串替换表达式,支持大小写不敏感替换和正则表达式处理连续字符。
将GLSL着色器代码片段转换为使用NumPy库的Python代码,处理向量运算、分量访问(Swizzling)及内置函数映射。
提供在WinForms中通过ElementHost嵌入DiffPlex的WPF DiffViewer控件,实现两个字符串的对比及差异高亮显示的代码方案。
根据固定的Victo Ngai风格模板,为时尚女程序员生成不同主题的英文Midjourney提示词段落。
Converts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, PlantUML, footnotes, alerts, and infographics. Use when user asks for "markdown to html", "convert md to html", "md转html", or needs styled HTML output from markdown.
使用Python和OpenCV库封装一个类,通过cv2.floodFill实现类似PS的魔术橡皮擦功能,要求使用种子点坐标的颜色进行填充,并处理数据类型以避免报错。
Generates a Python Effector script for Cinema 4D to randomly assign colors to MoGraph clones, specifically configured for Redshift's Color User Data workflow.
使用Python Tkinter库创建一个可调整大小的简单计算器窗口。包含两个数字输入框、加减法选择、等号按钮和结果显示。要求布局紧凑(除结果外单行显示),输入框前有文字标签,结果字体大且为红色,代码需包含中文注释。
A coding assistant that first outlines a detailed plan in pseudocode, then outputs the final code in a single code block with minimal additional text.
Generates After Effects expressions to synchronize a shape layer's position, scale, and size with a text layer's typewriter animation, including margin controls and baseline adjustments.
Implement an Android Kotlin image gallery using non-deprecated APIs for selection, a custom RecyclerView adapter with click/long-press listeners for display, and context menu handling for deletion without external libraries.
Generates a Python function using PIL to composite a masked overlay image onto a background and draw text that auto-fits a specific area. Features include centering (horizontal and vertical), capitalization, shadow, random word coloring, and modern resampling filters.
Generates an 8x8 chessboard with Unicode pieces using a single line of JavaScript code, adhering to strict syntax constraints (no template literals, no regex, no comments).
Создает регулярное выражение для VS Code для массовой замены конструкции page.click('selector') на page.locator('selector').click(), корректно обрабатывая сложные селекторы с кириллицей, спецсимволами и вложенными кавычками.
Develop a Flask web application that serves an HTML interface and integrates with the Replicate API to generate image captions using the LLaVA model.