Skip to content

Instantly share code, notes, and snippets.

View antonarhipov's full-sized avatar
💣

Anton Arhipov antonarhipov

💣
View GitHub Profile
@antonarhipov
antonarhipov / guidelines.md
Created April 7, 2025 07:57
Spring Boot Junie guidelines

Spring Boot Style Guide for Bookstore Application

This document outlines the coding standards, architectural patterns, and best practices for the Bookstore application.

Technology Stack

Frontend

  • React 18 for building user interfaces
  • Tailwind CSS for utility-first styling
  • Vite for frontend tooling and development environment
@antonarhipov
antonarhipov / spring_ai.ipynb
Created March 20, 2025 17:17
gettings started with Spring AI in Kotlin Notebooks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antonarhipov
antonarhipov / guidelines.md
Created January 28, 2025 22:00
Guidelines for Junie (.junie/guidelines.md)

Project Overview

Technology Stack

  • Backend:

    • Spring Boot - Java-based framework for building the application
    • Spring Data JDBC - For data persistence and repository implementation
    • Spring MVC - For handling HTTP requests and REST endpoints
    • H2 database - for storing data
  • Frontend:

sealed interface Creature
data class Cthulhu(
val madnessLevel: Int,
val isAwakened: Boolean
) : Creature
data class Kraken(
val length: Double,
@antonarhipov
antonarhipov / SonicPiDarkHouseGenerator.kt
Last active October 24, 2024 12:55
Sonic Pi Dark House Music Generator in Kotlin
import kotlin.random.Random
data class Note(val pitch: Int, val duration: Double)
class SonicPiDarkHouseGenerator {
private val scale = listOf(60, 63, 65, 67, 70, 72) // C minor pentatonic scale
private val rhythms = listOf(0.25, 0.5, 1.0) // Sixteenth, eighth, and quarter notes
fun generateMelody(length: Int): List<Note> =
List(length) {
@antonarhipov
antonarhipov / gist:2e214d122147cfc24366f1bef666c500
Created October 24, 2024 11:37
Sonic Pi Dark House program
##| Generated Sonic Pi code for Dark House:
use_bpm 120
live_loop :atmos_pad do
use_synth :dark_ambience
play chord(:C3, :minor), release: 8, amp: 0.4
sleep 8
end

IntelliJ IDEA Debugger Tips & Tricks

Debuggers are commonly used to locate and fix bugs. Though, how long does it take to solve an issue? Debugging isn’t a very productive process, but there are ways to make it more efficient in IntelliJ IDEA. In this talk, Anton will demonstrate various debugger features, including not-so-standard ones, like:

  • Remote debugging
  • Lambda breakpoints
  • Stream chain tracing
  • Altering program behavior
  • Emulated method breakpoint
  • Evaluate and log
@antonarhipov
antonarhipov / onboarding.kt
Last active August 9, 2023 12:25
Kotlin onboarding example
data class Book(val isbn: String, val title: String, val pageCount: Int)
fun main() {
val books = listOf(
Book("1617293296", "Kotlin in Action", 360),
Book("1680506358", "Programming Kotlin", 450),
Book("1801815720", "Kotlin Design Patterns and Best Practices", 356),
Book("1492082279", "Java to Kotlin", 300),
)