Skip to content

Instantly share code, notes, and snippets.

View saroar's full-sized avatar
🏠
Working from home

Saroar Khandoker saroar

🏠
Working from home
View GitHub Profile
import Foundation
import ShellOut
import ECSharedModels
public struct PassGenerator {
/// Generate a pass. Note the certificates and the assets should already be located at the url provided before this method is called
/// - Parameters:
/// - pass: the pass you want to generate
/// - url: where you want the pass to appear
/// - certificateName: p12 certificate. See how to generate one at https://www.raywenderlich.com/2855-beginning-passbook-in-ios-6-part-1-2#toc-anchor-007
{% extends 'base.html' %}
{% load widget_tweaks %}
{% block content %}
<br>
<br>
<br>
# Use ARG to define the default application directory, allowing override if needed
ARG APP_DIR=/app1
FROM python:3.9.18-bullseye
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Use the ARG in WORKDIR, setting the working directory
import BSON
import NukeUI
import SwiftUI
import Foundation
import LPGSharedModels
import LocationReducer
import UserDefaultsClient
import ComposableArchitecture
import ComposableCoreLocation
@saroar
saroar / WebSocketVaporServer.swift
Created February 5, 2024 14:30
Vapor 4 Websocket Configuration !
import Vapor
import WebSocketKit
extension Application {
private struct WebsocketClientsKey: StorageKey {
typealias Value = WebsocketClients
}
var wsClients: WebsocketClients {
get {
//
// LearnPlayGrowApp.swift
// LearnPlayGrow
//
// Created by Saroar Khandoker on 20.03.2023.
//
import UIKit
import SwiftUI
import AppView
import AVFoundation
import Contacts
import CoreLocation
import Foundation
import UserNotifications
@DependencyClient
public struct DevicePermissions {
enum PermissionError: Error {
import ComposableArchitecture
import ComposableUserNotifications
import Foundation
import SettingsFeature
import RemoteNotificationsClient
import LPGSharedModels
import UIKit
import os
import NotificationHelpers
import BSON
import SwiftUI
import PhotosUI
import SwiftUIExtension
import ComposableArchitecture
public enum ImageState: Equatable {
public static func ==(lhs: ImageState, rhs: ImageState) -> Bool {
switch (lhs, rhs) {
case (let .loading(lhsString), let .loading(rhsString)):
import Foundation
import ComposableArchitecture
import LPGSharedModels
import BSON
import ComposableCoreLocation
import LocationReducer
import UserDefaultsClient
import SwiftUI
import NukeUI