Skip to content

Instantly share code, notes, and snippets.

View mingsai's full-sized avatar
🎯
Focusing

Tommie N. Carter, Jr. mingsai

🎯
Focusing
View GitHub Profile
@mingsai
mingsai / MNGStarRating.swift
Created November 28, 2015 05:45
Star Rating Control
//
// MNGStarRating.swift
// CommonCents
//
// Created by Tommie N. Carter, Jr., MBA on 11/27/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import UIKit
@mingsai
mingsai / Compression.swift
Last active February 12, 2016 17:38
A set of functions to convert an entire NSManagedObject graph to a dictionary using recursion. The advanced version fixes issues with related objects that were performing endless recursion. I found that when storing large data files (video) it was prudent to import the libz.x.x.x.tb and the libcompression.tb frameworks. Note the NSData compressi…
//
// Compression.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 2/11/16.
// Copyright © 2016 MING Technology. All rights reserved.
//
import Foundation
@mingsai
mingsai / MNGVideoPlayerView.swift
Last active January 21, 2018 14:51
Swift conversion of code for article on multiple video playback in iOS (original article/source: http://iosguy.com/2012/01/11/multiple-video-playback-on-ios/)
//
// Created by Tommie N. Carter, Jr., MBA on 2/12/16.
// Copyright © 2016 MING Technology. All rights reserved.
//
import UIKit
import AVFoundation
class MNGVideoPlayerView: UIView {
@mingsai
mingsai / MNGSoundManager.swift
Created February 12, 2016 17:45
A Swift class to manage initialization, playback and memory related to sound playback on iOS
//
// MNGSoundManager.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 10/26/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import Foundation
import AudioToolbox
@mingsai
mingsai / MNGImageToDataTransformer.swift
Created February 12, 2016 17:47
A Swift class to manage image to data value transformations for use with Core Data
//
// MNGImageToDataTransformer.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 9/11/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import UIKit
@mingsai
mingsai / MNGCloudManager.swift
Created February 12, 2016 17:48
A Swift class to help manage cloud events using Apple's CloudKit platform. This is the experimental version.
// MNGCloudManager.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 7/25/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import Foundation
import CloudKit
@mingsai
mingsai / DictionaryExtensions.swift
Created February 12, 2016 17:50
Swift Dictionary extensions to return all keys for a value, et al.
//
// DictionaryExtensions.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 12/14/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import Foundation
@mingsai
mingsai / MNGAppUserSettings.swift
Created February 12, 2016 17:51
A sample class to show how I manage an apps user settings
//
// MNGAppUserSettings.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 12/7/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import UIKit
@mingsai
mingsai / MNGViewExtensions.swift
Created February 12, 2016 17:53
Swift class for managing UIView animations
//
// MNGViewExtensions.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 10/30/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import UIKit
@mingsai
mingsai / MNGColorExtensions.swift
Created February 12, 2016 17:55
A Swift class with additional functionality for Color. Also shows name spacing techniques for adding non-colliding extensions.
//
// MNGColorExtensions.swift
//
//
// Created by Tommie N. Carter, Jr., MBA on 8/19/15.
// Copyright © 2015 MING Technology. All rights reserved.
//
import Foundation
#if os(OSX)