This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Created by Nedrow, David E on 7/20/18. | |
| // | |
| import Foundation | |
| /// Provides extensions to NSObject. This is deliberately not exposed to Objective-C. | |
| // MARK: - NSObject+Extensions | |
| public extension NSObject { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Created by Nedrow, David E on 2019-07-03. | |
| // See bottom of file for license. | |
| import Foundation | |
| // MARK: - Extensions to UILabel | |
| /// This extension to UILabel provides mechanisms for dealing with kerning. | |
| public extension UILabel { | |
| /// This UILabel extension provides a mechanism for getting and setting the kerning. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Created by Nedrow, David E on 7/20/18. | |
| // See bottom of file for license. | |
| // MARK: Nib-related functions. | |
| public extension UIView { | |
| /** Loads instance from nib with the same name. */ | |
| func loadNib() -> UIView { | |
| let bundle = Bundle(for: type(of: self)) | |
| let nibName = type(of: self).description().components(separatedBy: ".").last! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Created by Radu Romanov and David Nedrow on 7/20/18. | |
| // | |
| import Foundation | |
| // MARK: View-related functions | |
| public extension UIView { | |
| /// Adds a modal subview | |
| /// - Parameters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Created by Nedrow, David E on 7/20/18. | |
| // See bottom of file for license. | |
| import Foundation | |
| /// Provides extensions to NSObject. This is deliberately not exposed to Objective-C. | |
| // MARK: - NSObject+Extensions | |
| public extension NSObject { | |
| /// Uses the given configuration to set the accessibility info for this object. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This is a SLIGHTLY modified version of a script provided by AWS to rotate | |
| # the certificates for RDS. | |
| # The only changes were to add a timestamp to the directory name, and | |
| # create the directory if it didn't already exist. | |
| mydir=/tmp/rdscerts-`date "+%Y%m%d-%H%M%S"` | |
| truststore=${mydir}/rds-truststore.jks | |
| storepassword=changeit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Copyright 2015 Aristedes Maniatis | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| #create a file to work with and eat the output | |
| foo="$( dd if=/dev/zero of=/var/tmp/infile count=1175000 2>&1 >/dev/null )" | |
| # Print the CSV header | |
| printf 'ibs,obs,run time,MB/s\n' | |
| # Loop the buffer size for the input | |
| for ibs in 1k 2k 4k 8k 16k 32k 64k 128k 256k 512k 1M 2M 4M 8M |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension UIStackView { | |
| func removeArrangedSubview(_ view: UIView, shouldRemoveFromSuperview: Bool) { | |
| removeArrangedSubview(view) | |
| if shouldRemoveFromSuperview { | |
| view.removeFromSuperview() | |
| } | |
| } | |
| } |