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 Foundation | |
import ObjectiveC | |
final class SwiftNSProxyObject<T:NSObjectProtocol>: NSProxy { | |
@nonobjc | |
var baseObject:T! | |
typealias MethodLookup = @convention(c) (AnyObject, Selector, Selector) -> (Unmanaged<NSObject>?) | |
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
// | |
// CompatKeyboardLayoutGuide.swift | |
// | |
import UIKit | |
import Combine | |
// Backport LayoutGuide for UIKeyboardLayout (This only works for Docked Keyboard) | |
@MainActor | |
public class CompatDockedKeyboardLayoutGuide: UILayoutGuide { |
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 SwiftUI | |
import UniformTypeIdentifiers | |
import MobileCoreServices | |
struct AnimatingBitmapView: View, Equatable { | |
static func == (lhs: Self, rhs: Self) -> Bool { | |
lhs.param == rhs.param && lhs.label == rhs.label && lhs.paused == rhs.paused && lhs.resizingMode == rhs.resizingMode && lhs.capInsets == rhs.capInsets |
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
// | |
// customization.swift | |
// BTree | |
// | |
// Created by 박병관 on 3/9/25. | |
// | |
import Foundation | |
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
// | |
// CFRedBlackTreeState.swift | |
// BTree | |
// | |
// Created by 박병관 on 3/5/25. | |
// | |
internal struct CFRedBlackTreeState<Key:Comparable> { | |
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
package com.esotericsoftware.spine.android; | |
import android.graphics.Canvas | |
import com.badlogic.gdx.utils.Array | |
import com.esotericsoftware.spine.android.SkeletonRenderer.RenderCommand | |
// this is the hack for accessing package-private while in ART & Kotlin | |
// ART does not have module.info.java so we can safely access it at runtime | |
// we can access java-package scope at compile time thanks to kotlin |
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 asyncio | |
import os | |
import sys | |
from typing import AsyncGenerator | |
from contextlib import closing | |
async def console_input() -> AsyncGenerator[str, None]: | |
loop = asyncio.get_event_loop() | |
reader = asyncio.StreamReader(loop=loop) | |
with os.fdopen(os.dup(sys.stdin.fileno()), mode='rt+') as file_ref: |
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
""" | |
An event loop policy that integrates Windows message loop with IOCP-based async processing. | |
""" | |
# SPDX-License-Identifier: MIT | |
__all__ = ( | |
'TkinterProactorEventLoopPolicy', | |
'TclIocpProactor', |
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
struct ArrayDeque<Element> { | |
private var buffer: ContiguousArray<Element?> | |
private var start: Int | |
private var itemCount: Int | |
private var capacity: Int { | |
buffer.count | |
} | |
init() { |
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.compose.foundation.layout.PaddingValues | |
import androidx.compose.runtime.* | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.layout.SubcomposeLayout | |
import androidx.compose.ui.layout.SubcomposeLayoutState | |
import androidx.compose.ui.layout.SubcomposeSlotReusePolicy | |
import androidx.compose.ui.unit.* | |
import java.time.LocalDate | |
/** |
NewerOlder