http://www.techjawab.com/2013/06/how-to-setup-mount-auto-mount-usb-hard.html
This file contains 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
// Playground - noun: a place where people can play | |
import UIKit | |
import Foundation | |
var authRequiredAction = UIMutableUserNotificationAction() | |
authRequiredAction.authenticationRequired = true | |
var authNotRequiredAction = UIMutableUserNotificationAction() |
This file contains 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
import Foundation | |
protocol Enumerable { | |
typealias Element | |
func each( (Element) -> Void) | |
} | |
//----------------------------- |
This file contains 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
// Regex | |
import Foundation | |
operator infix =~ {} | |
@infix func =~ (str: String, pattern: String) -> Bool { | |
var error: NSError? | |
let regex = NSRegularExpression.regularExpressionWithPattern(pattern, options: nil, error: &error) | |
if (error) { return false } |
This file contains 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
Pod::Spec.new do |s| | |
s.name = 'JSONKit' | |
s.version = '1.5pre.1' | |
s.license = 'BSD / Apache License, Version 2.0' | |
s.summary = 'A Very High Performance Objective-C JSON Library.' | |
s.homepage = 'https://github.com/johnezang/JSONKit' | |
s.author = 'John Engelhart' | |
s.source = { :git => 'https://github.com/johnezang/JSONKit.git', :commit => '82157634ca0ca5b6a4a67a194dd11f15d9b72835' } | |
s.source_files = 'JSONKit.*' |