Skip to content

Instantly share code, notes, and snippets.

View Zhendryk's full-sized avatar

Jonathan Bailey Zhendryk

  • Raleigh, NC, USA
View GitHub Profile
@Zhendryk
Zhendryk / The Ultimate Windows Development Environment.md
Last active March 7, 2024 21:30
How to set up the ultimate Windows development environment
@Zhendryk
Zhendryk / create-react-typescript-app.py
Last active May 28, 2020 20:51
React/TypeScript Project Generator
# create-react-typescript-app.py
# Author: Jonathan Bailey
import os
import json
import subprocess
############################
# OPERATING SYSTEM UTILITIES
############################
@Zhendryk
Zhendryk / RealmManager.swift
Created February 6, 2020 03:44
Simple singleton class to manage Realm objects synchronously and asynchronously.
//
// RealmManager.swift
// RealmManager
//
// Created by Jonathan Bailey on 12/15/18.
// Copyright © 2018 Jonathan Bailey. All rights reserved.
//
import Foundation
import RealmSwift
@Zhendryk
Zhendryk / CustomActivityIndicator.swift
Created January 13, 2019 03:19
Custom activity indicator that natively renders After Effects vector animations with an optional message NOTE: This depends on airbnb/lottie-ios which can be found here: https://github.com/airbnb/lottie-ios
//
// CustomActivityIndicator.swift
//
// Created by Jonathan Bailey on 9/10/18.
// Copyright © 2018 Jonathan Bailey. All rights reserved.
//
import UIKit
import Lottie
@Zhendryk
Zhendryk / Date+Intervals.swift
Created November 1, 2018 19:28
Convenience methods for "date arithmetic" in easy to read and use formats
//
// Date+Intervals.swift
//
// Created by Zhendryk on 11/1/18.
// Copyright © 2018 Zhendryk. All rights reserved.
//
import Foundation
extension Date {
@Zhendryk
Zhendryk / UIImageView+asyncCache.swift
Created November 1, 2018 19:25
Allows a user to download an image asynchronously directly into a UIImageView and cache it
//
// UIImageView+asyncCache.swift
//
// Created by Zhendryk on 10/18/18.
// Copyright © 2018 Zhendryk. All rights reserved.
import Foundation
import UIKit
let imageCache = NSCache<NSString, UIImage>()
@Zhendryk
Zhendryk / NetworkManager.swift
Created November 1, 2018 19:22
Allows user to check network statuses
//
// NetworkManager.swift
//
// Created by Zhendryk on 11/1/18.
// Copyright © 2018 Zhendryk. All rights reserved.
import Foundation
import SystemConfiguration
class NetworkManager {
@Zhendryk
Zhendryk / UIView+AutoLayout.swift
Created October 24, 2018 15:24
Extension for UIView making AutoLayout a breeze
//
// UIView+AutoLayout.swift
//
// Created by Zhendryk on 10/24/18.
// Copyright © 2018 Zhendryk. All rights reserved.
//
import UIKit
extension UIView {