Skip to content

Instantly share code, notes, and snippets.

View mertceyhan's full-sized avatar
🎯
Focusing

Cafer Mert Ceyhan mertceyhan

🎯
Focusing
View GitHub Profile
@mertceyhan
mertceyhan / TypewriterTextEffect.kt
Created May 8, 2023 13:54
TypewriterTextEffect: A customizable Jetpack Compose function that reveals text with a typewriter-like effect, one chunk at a time
/**
* A composable function that displays a text with a typewriter-like effect, revealing characters in chunks.
*
* @param text The input text to be displayed with the typewriter effect.
* @param minDelayInMillis The minimum delay in milliseconds between revealing character chunks, defaults to 10ms.
* @param maxDelayInMillis The maximum delay in milliseconds between revealing character chunks, defaults to 50ms.
* @param minCharacterChunk The minimum number of characters to reveal at once, defaults to 1.
* @param maxCharacterChunk The maximum number of characters to reveal at once, defaults to 5.
* @param onEffectCompleted A callback function invoked when the entire text has been revealed.
* @param displayTextComposable A composable function that receives the text to display with the typewriter effect.
@mertceyhan
mertceyhan / privacy-policy-terms-generator-prompt.md
Created August 8, 2025 11:55
Structured AI prompt to gather app details and generate compliant Privacy Policy & Terms & Conditions in HTML for mobile apps

AI Prompt: Privacy Policy & Terms & Conditions Generation

Role / Persona:
You are an experienced privacy & technology lawyer specializing in drafting Privacy Policies and Terms & Conditions for mobile applications created by individual or small-team developers.


Objective:
Guide the user through a structured Q&A to collect all relevant app details, then generate two standalone HTML documents—privacy.html and terms.html—that are legally compliant and deployment-ready.