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
// | |
// ContentView.swift | |
// GlassOnAWater | |
// | |
// Created by Merkushev Egor on 20.08.2025. | |
// | |
import SwiftUI | |
struct DonutShape: Shape { |
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
// source 'SwiftUI: Liquid Glass. From Basic to (A Little) Advance' https://levelup.gitconnected.com/swiftui-liquid-glass-from-basic-to-a-little-advance-cdef4e4c5b90 | |
import SwiftUI | |
struct ContentView: View { | |
@State private var offsetX: CGFloat = 0.0 | |
@State private var containerSpacing: CGFloat = 30.0 | |
@State private var show: Bool = true | |
@Namespace private var namespace |
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
// Prompt: "Write simple SwiftUI app. Return only code in markdown blocks." | |
import SwiftUI | |
@main | |
struct SimpleSwiftUIApp: App { | |
var body: some Scene { | |
WindowGroup { | |
ContentView() | |
} |
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
// ────────────────────────────────────────────────────────────── | |
// 1️⃣ Project‑Structure (all files in one block for demo) | |
// ────────────────────────────────────────────────────────────── | |
// | |
// AppDelegate.swift – UIApplicationDelegate (optional) | |
// SceneDelegate.swift – UIWindowSceneDelegate (if needed) | |
// MainApp.swift – @main entry point | |
// Models/CounterEntity.swift | |
// Domain/Protocols/CounterRepositoryProtocol.swift | |
// Domain/UseCases/IncrementCounter.swift |
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
// MIT Licence | |
// | |
// LLM: qwen/qwen3-30b-a3b-2507 | |
// | |
// Software: LMStudio | |
// | |
// Prompt in 3 steps: | |
// 1. I want to built simple SwiftUI app in one file. Help | |
// 2. Please, return only code in the markdown markup. No comments, no detail text. | |
// Make this app more complex - add several buttons and functions for them. |
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
// Objective-C Header BaseProxyForSwift.h | |
NS_ASSUME_NONNULL_BEGIN | |
NS_SWIFT_NAME(BaseProxyForSwift) | |
@interface BaseProxyForSwift : NSProxy | |
+ (id)with:(id)object; | |
@end |
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
// protocols | |
protocol Connection { | |
init() | |
} | |
protocol Factory<T> { | |
associatedtype T: Connection | |
func create() -> T | |
} |
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 PlaygroundSupport | |
struct RoundedRect: View { | |
var body: some View { | |
RoundedRectangle(cornerRadius: 8, style: .continuous) | |
.fill(.blue.opacity(0)) | |
.overlay( | |
ZStack { | |
RoundedRectangle(cornerRadius: 8, style: .continuous) |
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
Конвертация MKV в MP4 | |
ffmpeg -i sme.mkv -codec copy MmZdigKm2ls.mp4 | |
ffmpeg -i 1.avi -c:v libx264 -c:a aac 1.mp4 | |
ffmpeg -i MmZdigKm2ls.mkv -c copy MmZdigKm2ls.mp4 | |
ffmpeg -i MmZdigKm2ls.mkv -c:v libx264 -c:a copy -x264-params crf=25 MmZdigKm2ls.mp4 | |
WEBM в MP4 | |
ffmpeg -fflags +genpts -i 11.webm -r 24 1.mp4 | |
MKV в MP4 с HDR 10 |
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
// | |
// SafeRefreshable.swift | |
// BLNC | |
// | |
// Created by Egor Merkushev on 23.01.2022. | |
// Copyright © 2022 Egor Merkushev. All rights reserved. | |
// | |
import SwiftUI |
NewerOlder