@file:JvmName(name: "SundaeApp")
package com.example.sundae
import kotlin.random.Random
fun main() {
val name = "Kotlin"
println("Hello, $name!")
val fruits = listOf("apple", "banana", "cherry")
for (fruit in fruits) {
println("I like $fruit")
}
val randomNumber = Random.nextInt(1, 100)
println("Random number: $randomNumber")
val message = """
This is a multi-line string.
It can contain multiple lines of text.
No need for escape characters!
""".trimIndent()
val escapedString = "This string contains an escape sequence: \n"
}
data class Person(val name: String, val age: Int)
fun greet(name: String): String {
return "Welcome, $name!"
}
enum class Color {
RED, GREEN, BLUE
}
interface Drawable {
fun draw()
}
class Circle(private val radius: Double) : Drawable {
override fun draw() {
println("Drawing a circle with radius $radius")
}
}
import gleam/io
import gleam/list
import gleam/string
pub fn main() {
io.println("Hello from Gleam!")
let numbers = [1, 2, 3, 4, 5]
let doubled = list.map(numbers, fn(x) { x * 2 })
io.debug(doubled)
let name = "Gleam"
let greeting = string.concat(["Hello, ", name, "!"])
io.println(greeting)
}
pub type Person {
Person(name: String, age: Int)
}
pub fn greet(person: Person) -> String {
"Hello, " <> person.name <> "! You are " <> string.inspect(person.age) <> " years old."
}
#!/bin/bash
# Welcome message
echo "Welcome to the Sundae theme showcase!"
# Variables
NAME="Sundae"
VERSION="1.0.0"
# Function definition
greet() {
local name=$1
echo "Hello, $name!"
}
# Conditional statement
if [ "$NAME" = "Sundae" ]; then
echo "This is the $NAME theme, version $VERSION"
else
echo "Unknown theme"
fi
# Loop
for i in {1..5}; do
echo "Count: $i"
done
# Command substitution
current_date=$(date +"%Y-%m-%d")
echo "Today's date is $current_date"
# Call function
greet "User"
# Exit
exit 0
# This is a TOML document
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00
[database]
enabled = true
ports = [ 8000, 8001, 8002 ]
data = [ ["delta", "phi"], [3.14] ]
temp_targets = { cpu = 79.5, case = 72.0 }
[servers]
[servers.alpha]
ip = "10.0.0.1"
role = "frontend"
[servers.beta]
ip = "10.0.0.2"
role = "backend"
# Markdown Example
## Headers
# H1
## H2
### H3
## Emphasis
*italic* or _italic_
**bold** or __bold__
**_bold and italic_**
## Lists
1. First item
2. Second item
3. Third item
- Unordered item
- Another item
- Subitem
## Links and Images
Dont stol my key pls
[OpenAI](https://www.openai.com)

## Code
Inline `code` here.
```python
def hello_world():
print("Hello, World!")
```
SlimeyAr: .sundae_theme gitbutler/workspace
user npm run dev
$ astro dev
22:08:06 [vite] Generated 2ms
astro v5.4.1 ready in 2763 ms
┃ Local http://localhost:4322/
┃ Network use --host to expose
22:08:06 watching for file changes...
█
...
/**
* This is a sample Kotlin program demonstrating various language features.
* @see SundaeTheme
*/