Skip to content

Instantly share code, notes, and snippets.

View halilbaydar's full-sized avatar
🎯
Focusing

halil halilbaydar

🎯
Focusing
View GitHub Profile
@JamesSedlacek
JamesSedlacek / KeyboardToolbar.swift
Last active March 19, 2026 16:25
SwiftUI Keyboard Toolbar Workaround
//
// KeyboardToolbar.swift
//
// Created by James Sedlacek on 9/20/23.
//
import SwiftUI
import Combine
@Observable
@giorgospat
giorgospat / EndlessLazyColumn.kt
Created November 13, 2023 22:36
Jetpack Compose component for endless vertical list
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
@vishesh
vishesh / listop.ss
Created November 13, 2011 23:41
Some common operation on Scheme List structure
(define (delete-n list n)
(if (= n 0)
(cdr list)
(cons (car list) (delete-n (cdr list) (- n 1)))))
(define (insert-n list item n)
(if (= n 0)
(cons item list)
(cons (car list) (insert-n (cdr list) item (- n 1)))))