Skip to content

Instantly share code, notes, and snippets.

View seifscape's full-sized avatar
🎯
Focusing

Seif Kobrosly seifscape

🎯
Focusing
  • Apptitude Labs LLC
  • West Palm Beach, FL
  • 02:31 (UTC -05:00)
  • X @seifscape
View GitHub Profile
@seifscape
seifscape / CurvedUIView.swift
Created May 18, 2022 16:22 — forked from anitaa1990/CurvedUIView.swift
A Swift extension of UIView to display a curved view
import UIKit
extension UIView {
/* Usage Example
* bgView.addBottomRoundedEdge(desiredCurve: 1.5)
*/
func addBottomRoundedEdge(desiredCurve: CGFloat?) {
@seifscape
seifscape / iterm2-solarized.md
Created January 5, 2023 23:41 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@seifscape
seifscape / WorkoutSplit.swift
Created November 28, 2023 00:20 — forked from shaundon/WorkoutSplit.swift
Convert an array of HKQuantitySample into splits.
import Foundation
import HealthKit
struct WorkoutSplit: Hashable {
let label: String
let distance: HKQuantity
let duration: TimeInterval
}
extension WorkoutSplit {
@seifscape
seifscape / WorkoutSplit.swift
Created November 28, 2023 00:20 — forked from shaundon/WorkoutSplit.swift
Convert an array of HKQuantitySample into splits.
import Foundation
import HealthKit
struct WorkoutSplit: Hashable {
let label: String
let distance: HKQuantity
let duration: TimeInterval
}
extension WorkoutSplit {
import SwiftUI
private struct OnFirstAppear: ViewModifier {
let perform: () -> Void
@State private var firstTime = true
func body(content: Content) -> some View {
content.onAppear {
if firstTime {
import SwiftUI
private struct OnLoad: ViewModifier {
let action: () -> Void
@State private var loaded = false
func body(content: Content) -> some View {
content.onAppear {
if !loaded {
loaded = true
extension StringProtocol {
subscript(_ offset: Int) -> String.Element {
if offset >= 0 {
self[index(startIndex, offsetBy: offset)]
} else {
self[index(endIndex, offsetBy: offset)]
}
}
@seifscape
seifscape / OpenSourceBaas.md
Created December 5, 2025 02:13 — forked from PARC6502/OpenSourceBaas.md
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Supabase - ~52K stars

  • Designed explicitly as an open source firebase alternative
  • Typescript based
  • Docker support

Appwrite - ~32K stars

  • Written in JavaScript and PHP
  • Docker based
  • Realtime support across all services