Skip to content

Instantly share code, notes, and snippets.

David Hoerl dhoerl

  • New Jersey, USA
Block or report user

Report or block dhoerl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View advanced-swiftui-animations.swift
// The SwiftUI Lab: Advanced SwiftUI Animations
// (Animating Paths)
// (GeometryEffect)
// (AnimatableModifier)
import SwiftUI
struct ContentView: View {
stinger / CombineFetcher.swift
Last active Jan 11, 2020
Combine - fetching data using URLSession publishers
View CombineFetcher.swift
import Foundation
import Combine
enum APIError: Error, LocalizedError {
case unknown, apiError(reason: String)
var errorDescription: String? {
switch self {
case .unknown:
return "Unknown error"
zwaldowski / Activity.swift
Last active Jan 22, 2020
os_activity_t for Swift 3
View Activity.swift
// Activity.swift
// Created by Zachary Waldowski on 8/21/16.
// Copyright © 2016 Zachary Waldowski. Licensed under MIT.
import os.activity
private final class LegacyActivityContext {
ratulSharker / UDPEchoClient.h
Last active Oct 31, 2019
UDP Echo client using objective-c CFSocket
View UDPEchoClient.h
#import <Foundation/Foundation.h>
@interface UDPEchoClient : NSObject
- (BOOL) sendData:(const char *)msg;
MihaelIsaev / HMAC.swift
Last active Dec 4, 2019
Easy to use Swift implementation of CommonCrypto HMAC. You can easily hash your String to: md5, sha1, sha224, sha256, sha384, sha512 with pure Swift.
View HMAC.swift
// HMAC.swift
// Created by Mihael Isaev on 21.04.15.
// Copyright (c) 2014 Mihael Isaev inc. All rights reserved.
// ***********************************************************
// How to import CommonCrypto in Swift project without Obj-c briging header
spr / ExampleDelegate.h
Last active Mar 22, 2017
An Example NSURLConnection delegate
View ExampleDelegate.h
// ExampleDelegate.h
// Example
// Created by Scott Robertson on 2/10/13.
// Copyright (c) 2013 Scott Robertson. All rights reserved.
#import <Foundation/Foundation.h>
You can’t perform that action at this time.