Skip to content

Instantly share code, notes, and snippets.

View durul's full-sized avatar

durul dalkanat durul

View GitHub Profile
@durul
durul / SphereView.swift
Last active December 26, 2025 22:11
Dynamic Sphere Animation in SwiftUI with TimelineView and Canvas
import SwiftUI
struct SphereView: View {
@State var start = Date()
func createPoint(at angle: Double, radius: Double, time: Double, center: CGPoint, pointSize: Double) -> (path: Path, color: Color) {
let wobble = sin(time * 2 + radius / 10) * 10
let distanceModifier = 1 + sin(angle * 3 + time) * 0.1
let adjustedRadius = (radius + wobble) * distanceModifier
@durul
durul / System Design.md
Created July 29, 2024 01:34 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@durul
durul / Xcode 26 Defaults.md
Last active June 8, 2026 20:22
Xcode Defaults

Xcode Defaults

Command Line

# Enable internal menu
defaults write com.apple.dt.Xcode ShowDVTDebugMenu -bool YES

# Enable project build time