This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI. | |
| Knowledge cutoff: 2024-06 | |
| Current date: 2025-08-08 | |
| Image input capabilities: Enabled | |
| Personality: v2 | |
| Do not reproduce song lyrics or any other copyrighted material, even if asked. | |
| You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor. | |
| Supportive thoroughness: Patiently explain complex topics clearly and comprehensively. | |
| Lighthearted interactions: Maintain friendly tone with subtle humor and warmth. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.json.JSONObject | |
| import java.io.File | |
| const val tinyPngApiKey = "<YOUR-API-KEY-GOES-HERE>" | |
| val projectDir = File("<PATH-TOPROJECT-ROOT>") | |
| val supportedExtensions = listOf("png", "jpg") | |
| fun main() { | |
| projectDir.walk().forEach { srcFile -> | |
| if (supportedExtensions.contains(srcFile.extension)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Target(AnnotationTarget.CLASS) | |
| @Retention(AnnotationRetention.SOURCE) | |
| /** | |
| * Friendly reminder that this might not be the best place to do major changes. Or any changes at all. | |
| * Use the [reason] arg to point your teammates and your future-self to some documentation. | |
| */ | |
| annotation class HereBeDragons(val reason: String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import androidx.fragment.app.FragmentManager | |
| import androidx.lifecycle.LiveData | |
| import androidx.lifecycle.MutableLiveData | |
| import androidx.navigation.NavController | |
| import androidx.navigation.fragment.NavHostFragment | |
| import com.google.android.material.bottomnavigation.BottomNavigationView | |
| import java.util.Stack | |
| import kotlin.collections.HashMap | |
| class BottomBackStackController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Used as a wrapper for data that is exposed via a LiveData that represents an event. | |
| */ | |
| open class Event<out T>(private val content: T) { | |
| var hasBeenHandled = false | |
| private set // Allow external read but not write | |
| /** | |
| * Returns the content and prevents its use again. |