All Demos are available in Comments
Thanks to Kyriakos-Georgiopoulos
All Demos are available in Comments
Thanks to Kyriakos-Georgiopoulos
April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive
| /* | |
| * Copyright 2026 Kyriakos Georgiopoulos | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import androidx.compose.animation.core.* | |
| import androidx.compose.foundation.Canvas | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.material.Text | |
| import androidx.compose.runtime.* | |
| import androidx.compose.ui.Alignment | |
| import androidx.compose.ui.Modifier | |
| import androidx.compose.ui.geometry.Offset | |
| import androidx.compose.ui.geometry.Size |
| //settings.gradle.kts | |
| dependencyResolutionManagement { | |
| repositories { | |
| maven { url = uri("https://androidx.dev/snapshots/builds/11670047/artifacts/repository/") } | |
| google() | |
| mavenCentral() | |
| maven(url = "https://plugins.gradle.org/m2/") | |
| maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev") | |
| } |
| package com.louiscad.splitties.eap.bottomsheet | |
| import android.app.Activity | |
| import android.view.ViewGroup | |
| import androidx.activity.compose.BackHandler | |
| import androidx.compose.material.ExperimentalMaterialApi | |
| import androidx.compose.material.ModalBottomSheetLayout | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.DisposableEffect | |
| import androidx.compose.runtime.getValue |
| import android.content.Context | |
| import android.graphics.Canvas | |
| import android.graphics.Color | |
| import android.graphics.Paint | |
| import android.util.AttributeSet | |
| import android.view.View | |
| import kotlin.math.cos | |
| import kotlin.math.sin | |
| import kotlin.math.sqrt |
| <!--- Provide a general summary of your changes in the Title above --> | |
| <!--- If there is no changelog entry, label this PR as trivial to bypass the Danger warning --> | |
| ## Description | |
| <!--- Describe your changes in detail --> | |
| ## Motivation and Context | |
| <!--- Why is this change required? What problem does it solve? --> |
| Apache License | |
| Version 2.0, January 2004 | |
| http://www.apache.org/licenses/ | |
| TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
| 1. Definitions. | |
| "License" shall mean the terms and conditions for use, reproduction, | |
| and distribution as defined by Sections 1 through 9 of this document. |