- Change
encoding
toUTF-8
- insert
<?xml-stylesheet href="simian.xsl" type="text/xsl"?>
on second line
- Node
pmd-cpd
becomes<simian version="2.3.34">
- Nest another node
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.*' |
// 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 } |
import Foundation | |
protocol Enumerable { | |
typealias Element | |
func each( (Element) -> Void) | |
} | |
//----------------------------- |
// Playground - noun: a place where people can play | |
import UIKit | |
import Foundation | |
var authRequiredAction = UIMutableUserNotificationAction() | |
authRequiredAction.authenticationRequired = true | |
var authNotRequiredAction = UIMutableUserNotificationAction() |