Skip to content

Instantly share code, notes, and snippets.

View nikhiljohn10's full-sized avatar

Nikhil John nikhiljohn10

View GitHub Profile
final class AppleViewModel: ObservableObject {
var signInWithApple = SignInWithAppleCoordinator()
@Published var user: User?
func getRequest() {
signInWithApple.getApppleRequest()
}
func getUserInfo() {
@xtabbas
xtabbas / SnapCarousel.swift
Created May 10, 2020 18:13
A carousel that snap items in place build on top of SwiftUI
//
// SnapCarousel.swift
// prototype5
//
// Created by xtabbas on 5/7/20.
// Copyright © 2020 xtadevs. All rights reserved.
//
import SwiftUI
// Authoer: The SwiftUI Lab
// Full article: https://swiftui-lab.com/scrollview-pull-to-refresh/
import SwiftUI
struct RefreshableScrollView<Content: View>: View {
@State private var previousScrollOffset: CGFloat = 0
@State private var scrollOffset: CGFloat = 0
@State private var frozen: Bool = false
@State private var rotation: Angle = .degrees(0)
@soarez
soarez / ca.md
Last active March 4, 2026 04:50
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.