Install osxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update| // | |
| // ARC Helper | |
| // | |
| // Version 2.1 | |
| // | |
| // Created by Nick Lockwood on 05/01/2012. | |
| // Copyright 2012 Charcoal Design | |
| // | |
| // Distributed under the permissive zlib license | |
| // Get the latest version from here: |
| /** | |
| Note to self: | |
| This UITextView class extension gets calles every time iOS wants to add a new gesture recognizer to the textView. | |
| It checks for the type of the gesture recognizer (Long Press) and then for the associated action. | |
| Only if the action is ``smallDelayRecognizer:``, the gestuere recognizer will stay enabled. | |
| All otheer long press gestures will be disabled. | |
| Purpose: | |
| Allow user interaction with the links in the attributedText, but disallow text selection | |
| // | |
| // NSObject+setValuesForKeysWithJSONDictionary.h | |
| // SafeSetDemo | |
| // | |
| // Created by Tom Harrington on 12/29/11. | |
| // Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| /* Original source code courtesy John from iOSDeveloperTips.com */ | |
| #include <sys/socket.h> | |
| #include <sys/sysctl.h> | |
| #include <net/if.h> | |
| #include <net/if_dl.h> | |
| + (NSString *)getMacAddress | |
| { | |
| int mgmtInfoBase[6]; |
| // We have a parent just to pass face control in JSONSerialization | |
| @objc class SortedDictionary: NSDictionary { | |
| let _values: NSMutableArray = [] | |
| let _keys: NSMutableOrderedSet = [] | |
| override var count: Int { | |
| return _keys.count | |
| } | |
| override func keyEnumerator() -> NSEnumerator { |
osxfuse (3.x.x) from https://github.com/osxfuse/osxfuse/releases.ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update| //: Playground - noun: a place where people can play | |
| //: Copy this to one! | |
| import UIKit | |
| // With helpful insights from | |
| // https://forums.developer.apple.com/message/15725#15725 via http://oleb.net/blog/2015/06/c-callbacks-in-swift/ | |
| // This is essential the standalone basic definition of a pattern | |
| // that CGCreatePattern requires |
| // | |
| // Copyright (c) 2016, 2018 Nikolai Ruhe. All rights reserved. | |
| // | |
| import Foundation | |
| public extension FileManager { | |
| /// Calculate the allocated size of a directory and all its contents on the volume. |
| import Foundation | |
| extension UnicodeScalar : ForwardIndexType { | |
| public func successor() -> UnicodeScalar { | |
| return UnicodeScalar(value + 1) | |
| } | |
| } | |
| var operatorHeads: [UnicodeScalar] = Array("=-+!*%<>&|^~?".unicodeScalars) | |
| operatorHeads += Array("\u{00A1}" ... "\u{00A7}") |
| // | |
| // ARC Helper | |
| // | |
| // Version 2.2 | |
| // | |
| // Created by Nick Lockwood on 05/01/2012. | |
| // Copyright 2012 Charcoal Design | |
| // | |
| // Distributed under the permissive zlib license | |
| // Get the latest version from here: |